summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runit.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-04-23 21:12:08 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-04-23 21:12:08 (GMT)
commit4bc7351abd5eae587f2f01dc349329ac29fd8b17 (patch)
treeb3c8eec80ccb1e73e9a15ebf7be3f79a44083e50 /abs/core/runit-scripts/runit.install
parentdf3c3c139d7eedad4ab8be383c66a5518322157c (diff)
parent8c0d396181e43158de3f54c479456ca7ed052248 (diff)
downloadlinhes_pkgbuild-4bc7351abd5eae587f2f01dc349329ac29fd8b17.zip
linhes_pkgbuild-4bc7351abd5eae587f2f01dc349329ac29fd8b17.tar.gz
linhes_pkgbuild-4bc7351abd5eae587f2f01dc349329ac29fd8b17.tar.bz2
Merge branch 'testing' of git@linhes.org:linhes_pkgbuild into testing
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
}