diff options
Diffstat (limited to 'abs/core-testing/runit/runit.install')
-rwxr-xr-x | abs/core-testing/runit/runit.install | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/abs/core-testing/runit/runit.install b/abs/core-testing/runit/runit.install index b6fcb07..1728bc6 100755 --- a/abs/core-testing/runit/runit.install +++ b/abs/core-testing/runit/runit.install @@ -27,29 +27,20 @@ fi } post_install () { - mkdir /var/service - ln -s /sbin/halt.script /sbin/halt - ln -s /sbin/reboot.script /sbin/reboot - ln -s /sbin/poweroff.script /sbin/poweroff - ln -s /sbin/halt-init /sbin/reboot.init - ln -s /sbin/halt-init /sbin/poweroff.init - ln -s /sbin/shutdown.script /sbin/shutdown - - + [ -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 + [ -e /sbin/shutdown ] || ln -s /sbin/shutdown.script /sbin/shutdown } # arg 1: the new package version # arg 2: the old package version post_upgrade(){ - ln -s /sbin/halt.script /sbin/halt - ln -s /sbin/reboot.script /sbin/reboot - ln -s /sbin/poweroff.script /sbin/poweroff - ln -s /sbin/halt-init /sbin/reboot.init - ln -s /sbin/halt-init /sbin/poweroff.init - ln -s /sbin/shutdown.script /sbin/shutdown - + /bin/true } op=$1 |