diff options
author | Cecil <knoppmyth@gmail.com> | 2012-04-26 21:37:21 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2012-04-26 21:37:21 (GMT) |
commit | c7112b961322bf9c20282e3bbfb95b2ccf3fa97f (patch) | |
tree | da4450d043b175a7aebb3a93c858b294995b765e /abs/core/runit-scripts/runit.install | |
parent | f2394fa3f2984a3a4e74a19b2596f279ec3517ba (diff) | |
parent | c8fc2fc2156fdeb0e9a54e7be48c8f02fdff848e (diff) | |
download | linhes_pkgbuild-c7112b961322bf9c20282e3bbfb95b2ccf3fa97f.zip linhes_pkgbuild-c7112b961322bf9c20282e3bbfb95b2ccf3fa97f.tar.gz linhes_pkgbuild-c7112b961322bf9c20282e3bbfb95b2ccf3fa97f.tar.bz2 |
Merge branch 'testing' of git@linhes.org:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/runit-scripts/runit.install')
-rwxr-xr-x | abs/core/runit-scripts/runit.install | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/abs/core/runit-scripts/runit.install b/abs/core/runit-scripts/runit.install index 2f9cf90..d77c9aa 100755 --- a/abs/core/runit-scripts/runit.install +++ b/abs/core/runit-scripts/runit.install @@ -3,7 +3,7 @@ post_install () { [ -e /service ] || mkdir /service - servicelist="acpid cron frontend lircd ntpd alsa-utils avahi dbus sshd rsyslog tty2 tty3" + servicelist="acpid cron frontend remotes ntpd alsa-utils avahi dbus sshd rsyslog tty2 tty3" for i in $servicelist do ln -s /etc/sv/$i /service/$i @@ -43,9 +43,28 @@ post_upgrade(){ fi + if [ -e /service/lircd ] + then + /sbin/sv stop lircd + /sbin/remove_service.sh lircd + /sbin/add_service.sh remotes + fi + + if [ -e /etc/sv/lircd ] + then + rm -r /etc/sv/lircd + fi } +pre_upgrade(){ + if [ $(vercmp $2 2.1.1-60 ) -lt 0 ] + then + echo "Updating file permissions for /etc/sv to 755" + chmod -R 755 /etc/sv + fi +} + op=$1 shift |