summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runit.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/runit-scripts/runit.install')
-rwxr-xr-xabs/core/runit-scripts/runit.install21
1 files changed, 3 insertions, 18 deletions
diff --git a/abs/core/runit-scripts/runit.install b/abs/core/runit-scripts/runit.install
index d77c9aa..4ec6a9f 100755
--- a/abs/core/runit-scripts/runit.install
+++ b/abs/core/runit-scripts/runit.install
@@ -8,27 +8,12 @@ post_install () {
do
ln -s /etc/sv/$i /service/$i
done
-
- [ -e /sbin/halt ] || ln -s /sbin/halt.script /sbin/halt
- [ -e /sbin/reboot ] || ln -s /sbin/reboot.script /sbin/reboot
- [ -e /sbin/poweroff ] || ln -s /sbin/poweroff.script /sbin/poweroff
- [ -e /sbin/reboot.init ] || ln -s /sbin/halt-init /sbin/reboot.init
- [ -e /sbin/poweroff.init ] || ln -s /sbin/halt-init /sbin/poweroff.init
-
-
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade(){
-
- [ -e /sbin/halt ] || ln -s /sbin/halt.script /sbin/halt
- [ -e /sbin/reboot ] || ln -s /sbin/reboot.script /sbin/reboot
- [ -e /sbin/poweroff ] || ln -s /sbin/poweroff.script /sbin/poweroff
- [ -e /sbin/reboot.init ] || ln -s /sbin/halt-init /sbin/reboot.init
- [ -e /sbin/poweroff.init ] || ln -s /sbin/halt-init /sbin/poweroff.init
-
if [ -e /var/service ]
then
if [ ! -e /service ]
@@ -45,9 +30,9 @@ post_upgrade(){
if [ -e /service/lircd ]
then
- /sbin/sv stop lircd
- /sbin/remove_service.sh lircd
- /sbin/add_service.sh remotes
+ sv stop lircd
+ remove_service.sh lircd
+ add_service.sh remotes
fi
if [ -e /etc/sv/lircd ]