diff options
Diffstat (limited to 'abs/core-testing/runit-scripts/runit.install')
-rwxr-xr-x | abs/core-testing/runit-scripts/runit.install | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/abs/core-testing/runit-scripts/runit.install b/abs/core-testing/runit-scripts/runit.install index 4b97199..1e3f619 100755 --- a/abs/core-testing/runit-scripts/runit.install +++ b/abs/core-testing/runit-scripts/runit.install @@ -29,11 +29,11 @@ post_install () { ln -s /etc/sv/$i /var/service/$i done - 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 + [ -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 } @@ -42,12 +42,12 @@ post_install () { # 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 + [ -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 } op=$1 |