summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runit.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-04-05 22:30:31 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-04-05 22:30:31 (GMT)
commit9649ae208248fc14b44dde67d6bc7301127d9f4c (patch)
treeb95348b8ebcb96c8978ea8bce39a6fb822d76415 /abs/core/runit-scripts/runit.install
parentbdefc1e81c89dbb12e7e914a9f1f220ee5ed1714 (diff)
downloadlinhes_pkgbuild-9649ae208248fc14b44dde67d6bc7301127d9f4c.zip
linhes_pkgbuild-9649ae208248fc14b44dde67d6bc7301127d9f4c.tar.gz
linhes_pkgbuild-9649ae208248fc14b44dde67d6bc7301127d9f4c.tar.bz2
runit-scripts: fix frontend respawn by shutting down all services in 3. refs #961
add pause utility from ignite project remove power script stuff as it is done in poweroff-scripts
Diffstat (limited to 'abs/core/runit-scripts/runit.install')
-rwxr-xr-xabs/core/runit-scripts/runit.install21
1 files changed, 3 insertions, 18 deletions
diff --git a/abs/core/runit-scripts/runit.install b/abs/core/runit-scripts/runit.install
index d77c9aa..4ec6a9f 100755
--- a/abs/core/runit-scripts/runit.install
+++ b/abs/core/runit-scripts/runit.install
@@ -8,27 +8,12 @@ post_install () {
do
ln -s /etc/sv/$i /service/$i
done
-
- [ -e /sbin/halt ] || ln -s /sbin/halt.script /sbin/halt
- [ -e /sbin/reboot ] || ln -s /sbin/reboot.script /sbin/reboot
- [ -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
-
-
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade(){
-
- [ -e /sbin/halt ] || ln -s /sbin/halt.script /sbin/halt
- [ -e /sbin/reboot ] || ln -s /sbin/reboot.script /sbin/reboot
- [ -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 ]
@@ -45,9 +30,9 @@ post_upgrade(){
if [ -e /service/lircd ]
then
- /sbin/sv stop lircd
- /sbin/remove_service.sh lircd
- /sbin/add_service.sh remotes
+ sv stop lircd
+ remove_service.sh lircd
+ add_service.sh remotes
fi
if [ -e /etc/sv/lircd ]