summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runit.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/runit-scripts/runit.install')
-rwxr-xr-xabs/core/runit-scripts/runit.install21
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