diff options
Diffstat (limited to 'abs/core/poweroff-scripts/poweroff-scripts.install')
-rw-r--r-- | abs/core/poweroff-scripts/poweroff-scripts.install | 10 |
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 |