diff options
author | James Meyer <james.meyer@operamail.com> | 2009-03-09 16:44:23 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-03-09 16:44:23 (GMT) |
commit | c802f4e68f36af6d4ff89fc33c50a1837e007b76 (patch) | |
tree | a49fc1ae90d541921b56a27596be1fd59eb8f12b /abs/core-testing/runit/runit.install | |
parent | a962fbdaa7253d70c1e0d104eb84886d2e5115b0 (diff) | |
download | linhes_pkgbuild-c802f4e68f36af6d4ff89fc33c50a1837e007b76.zip linhes_pkgbuild-c802f4e68f36af6d4ff89fc33c50a1837e007b76.tar.gz linhes_pkgbuild-c802f4e68f36af6d4ff89fc33c50a1837e007b76.tar.bz2 |
runit don't symlink if it's already present.
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 |