summaryrefslogtreecommitdiffstats
path: root/abs/core/poweroff-scripts/poweroff-scripts.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2014-02-17 00:09:25 (GMT)
committerJames Meyer <james.meyer@operamail.com>2014-02-19 19:03:05 (GMT)
commit16bb1dce51851d71fc173ce662443b10222438d3 (patch)
treedbd30553e67e1d57f08581ea691dfd33da364059 /abs/core/poweroff-scripts/poweroff-scripts.install
parent48c7caf0470b8693b849ac13454fdac4a697e812 (diff)
downloadlinhes_pkgbuild-16bb1dce51851d71fc173ce662443b10222438d3.zip
linhes_pkgbuild-16bb1dce51851d71fc173ce662443b10222438d3.tar.gz
linhes_pkgbuild-16bb1dce51851d71fc173ce662443b10222438d3.tar.bz2
poweroff-scripts:
update binary path to /usr/bin refs #961
Diffstat (limited to 'abs/core/poweroff-scripts/poweroff-scripts.install')
-rw-r--r--abs/core/poweroff-scripts/poweroff-scripts.install8
1 files changed, 5 insertions, 3 deletions
diff --git a/abs/core/poweroff-scripts/poweroff-scripts.install b/abs/core/poweroff-scripts/poweroff-scripts.install
index b066f1d..00b4a84 100644
--- a/abs/core/poweroff-scripts/poweroff-scripts.install
+++ b/abs/core/poweroff-scripts/poweroff-scripts.install
@@ -10,9 +10,11 @@ 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
+ 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
}
# arg 1: the new package version