summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runit.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2012-04-23 17:46:30 (GMT)
committerBritney Fransen <brfransen@gmail.com>2012-04-23 17:46:30 (GMT)
commit9a303f31cba2f320a41a3a00e8cfd64e0259dbfe (patch)
treebe6e294cccfa51c7492f45d2d0438071fb56bd4f /abs/core/runit-scripts/runit.install
parentc17b329192c8c9eed4b732084dc1691d699be9bb (diff)
downloadlinhes_pkgbuild-9a303f31cba2f320a41a3a00e8cfd64e0259dbfe.zip
linhes_pkgbuild-9a303f31cba2f320a41a3a00e8cfd64e0259dbfe.tar.gz
linhes_pkgbuild-9a303f31cba2f320a41a3a00e8cfd64e0259dbfe.tar.bz2
runit-scripts: replace lircd with remotes
Diffstat (limited to 'abs/core/runit-scripts/runit.install')
-rwxr-xr-xabs/core/runit-scripts/runit.install13
1 files changed, 12 insertions, 1 deletions
diff --git a/abs/core/runit-scripts/runit.install b/abs/core/runit-scripts/runit.install
index 2f9cf90..213d10f 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,6 +43,17 @@ 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
}