diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-10-27 20:28:27 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-10-27 20:28:27 (GMT) |
commit | f7b823f55a80b1498c30e9f3a47692a2329c4f09 (patch) | |
tree | 6de557714e6336282fbc0ab16c6578386dfc6654 /abs/core/poweroff-scripts/poweroff-scripts.install | |
parent | 4c2a2e3504f472628285a989c7c9a76be6855f54 (diff) | |
parent | 01c1a60f3b7f93b3ed7404196c2cf798c4d8c674 (diff) | |
download | linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.zip linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.tar.gz linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/core/poweroff-scripts/poweroff-scripts.install')
-rw-r--r-- | abs/core/poweroff-scripts/poweroff-scripts.install | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/abs/core/poweroff-scripts/poweroff-scripts.install b/abs/core/poweroff-scripts/poweroff-scripts.install index b066f1d..1213e9d 100644 --- a/abs/core/poweroff-scripts/poweroff-scripts.install +++ b/abs/core/poweroff-scripts/poweroff-scripts.install @@ -10,9 +10,15 @@ pre_upgrade () { } post_install () { - - [ -e /sbin/halt.init ] || ln -sf /sbin/halt.init /sbin/reboot.init - [ -e /sbin/halt.init ] || ln -sf /sbin/halt.init /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 + true } # arg 1: the new package version |