summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-02-05 22:08:53 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-02-05 22:08:53 (GMT)
commit73e217800ce2ebd6e64ae54db7f54c386f047cff (patch)
tree4884c9e283205ffd6c7c38ab846393aefe01bb62 /abs/core
parentbfce2e0f5e5fe03890c9cbf0521200a93ba00426 (diff)
downloadlinhes_pkgbuild-73e217800ce2ebd6e64ae54db7f54c386f047cff.zip
linhes_pkgbuild-73e217800ce2ebd6e64ae54db7f54c386f047cff.tar.gz
linhes_pkgbuild-73e217800ce2ebd6e64ae54db7f54c386f047cff.tar.bz2
poweroff-scripts: shutdown.script: fix wall syntax to use stdin.
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/poweroff-scripts/PKGBUILD6
-rw-r--r--abs/core/poweroff-scripts/shutdown.script4
2 files changed, 5 insertions, 5 deletions
diff --git a/abs/core/poweroff-scripts/PKGBUILD b/abs/core/poweroff-scripts/PKGBUILD
index 9bcfee1..ff32494 100644
--- a/abs/core/poweroff-scripts/PKGBUILD
+++ b/abs/core/poweroff-scripts/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=poweroff-scripts
pkgver=1.1
-pkgrel=3
+pkgrel=4
pkgdesc="replacement scripts to work with sysvinit and runit"
license=('GPL')
depends=('sysvinit>=2.88' 'runit>=2.1.1-6')
@@ -12,7 +12,7 @@ install=poweroff-scripts.install
source=(halt.script reboot.script poweroff.script shutdown.script)
arch=('i686' 'x86_64')
-build() {
+package() {
install -d $pkgdir/sbin/
install -m0755 $srcdir/reboot.script $pkgdir/sbin/reboot
install -m0755 $srcdir/halt.script $pkgdir/sbin/halt
@@ -24,4 +24,4 @@ build() {
md5sums=('68ac5d7d5784e9559c9752d94a4943d5'
'3e042113f8715bc5bfd365d2486d0108'
'3ec5f3013dcbd60b6b957d17ba220585'
- '16bb393e9ae7b5fa744ca91970f350cc')
+ '1dccfcd2283d4ed193511535b0b220fc')
diff --git a/abs/core/poweroff-scripts/shutdown.script b/abs/core/poweroff-scripts/shutdown.script
index 31881e8..978f7a2 100644
--- a/abs/core/poweroff-scripts/shutdown.script
+++ b/abs/core/poweroff-scripts/shutdown.script
@@ -29,14 +29,14 @@ then
if [ x$reboot = x1 ]
then
- wall "System will reboot in $delay seconds"
+ echo "System will reboot in $delay seconds" | wall
sleep $delay
/sbin/runit-init 6
fi
if [ x$halt = x1 ]
then
- wall "System will poweroff in $delay seconds"
+ echo "System will poweroff in $delay seconds" | wall
sleep $delay
/sbin/runit-init 0
fi