summaryrefslogtreecommitdiffstats
path: root/abs/core/poweroff-scripts/poweroff-scripts.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/poweroff-scripts/poweroff-scripts.install')
-rw-r--r--abs/core/poweroff-scripts/poweroff-scripts.install12
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