diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-11-05 02:55:04 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-11-05 02:55:04 (GMT) |
commit | 2e9de8e980bd65c44629c8e1cb84105d530ce560 (patch) | |
tree | e709292dbb76fc64b0f4aebf70dc3c9b4acc12b5 /abs/core/runit-scripts/runit.install | |
parent | 1bc83bd99f473ad5cb9ba36795ccfc8c7e3bf63b (diff) | |
parent | a79540b84f7f74607fc0a742518f8d88d88b84ad (diff) | |
download | linhes_pkgbuild-2e9de8e980bd65c44629c8e1cb84105d530ce560.zip linhes_pkgbuild-2e9de8e980bd65c44629c8e1cb84105d530ce560.tar.gz linhes_pkgbuild-2e9de8e980bd65c44629c8e1cb84105d530ce560.tar.bz2 |
Merge branch 'testing' of knoppmyth.net:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/runit-scripts/runit.install')
-rwxr-xr-x | abs/core/runit-scripts/runit.install | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/abs/core/runit-scripts/runit.install b/abs/core/runit-scripts/runit.install index 1e3f619..138d498 100755 --- a/abs/core/runit-scripts/runit.install +++ b/abs/core/runit-scripts/runit.install @@ -22,11 +22,11 @@ fi post_install () { - mkdir /var/service + [ -e /service ] || mkdir /service servicelist="acpid cron frontend lircd ntpd alsa-utils avahi dbus portmap sshd syslog-ng tty2 tty3" for i in $servicelist do - ln -s /etc/sv/$i /var/service/$i + ln -s /etc/sv/$i /service/$i done [ -e /sbin/halt ] || ln -s /sbin/halt.script /sbin/halt @@ -48,6 +48,22 @@ post_upgrade(){ [ -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 ] + then + mkdir /service + cd /var/service + for i in * + do + ln -s /etc/sv/$i /service/$i + done + fi + + fi + + } op=$1 |