summaryrefslogtreecommitdiffstats
path: root/abs/core/poweroff-scripts/poweroff-scripts.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-04-05 19:49:18 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-04-05 19:49:18 (GMT)
commitbdefc1e81c89dbb12e7e914a9f1f220ee5ed1714 (patch)
treef8ed2037e4dab50bf0cdb4cdcb6a8b28d5f00694 /abs/core/poweroff-scripts/poweroff-scripts.install
parentde6718e325ed5fdcb2b15cb567732321ecb14790 (diff)
downloadlinhes_pkgbuild-bdefc1e81c89dbb12e7e914a9f1f220ee5ed1714.zip
linhes_pkgbuild-bdefc1e81c89dbb12e7e914a9f1f220ee5ed1714.tar.gz
linhes_pkgbuild-bdefc1e81c89dbb12e7e914a9f1f220ee5ed1714.tar.bz2
poweroff-scripts: fix shutdown/reboot issue with /usr/bin move. refs #961
Diffstat (limited to 'abs/core/poweroff-scripts/poweroff-scripts.install')
-rw-r--r--abs/core/poweroff-scripts/poweroff-scripts.install10
1 files changed, 5 insertions, 5 deletions
diff --git a/abs/core/poweroff-scripts/poweroff-scripts.install b/abs/core/poweroff-scripts/poweroff-scripts.install
index 00b4a84..5f631ed 100644
--- a/abs/core/poweroff-scripts/poweroff-scripts.install
+++ b/abs/core/poweroff-scripts/poweroff-scripts.install
@@ -10,11 +10,11 @@ pre_upgrade () {
}
post_install () {
- rm -f /sbin/reboot.init
- rm -f /sbin/poweroff.init
-
- [ -e /usr/sbin/halt.init ] || ln -sf /usr/sbin/halt.init /usr/sbin/reboot.init
- [ -e /usr/sbin/halt.init ] || ln -sf /usr/sbin/halt.init /usr/sbin/poweroff.init
+ files="/sbin/reboot.init /sbin/poweroff.init /usr/sbin/reboot.init /usr/sbin/poweroff.init"
+ for i in $files
+ do
+ [ -h $i ] && rm -f $i
+ done
}
# arg 1: the new package version