summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/runit/runit.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/runit/runit.install')
-rwxr-xr-xabs/core-testing/runit/runit.install49
1 files changed, 0 insertions, 49 deletions
diff --git a/abs/core-testing/runit/runit.install b/abs/core-testing/runit/runit.install
deleted file mode 100755
index 1728bc6..0000000
--- a/abs/core-testing/runit/runit.install
+++ /dev/null
@@ -1,49 +0,0 @@
-# arg 1: the new package version
-
-pre_install () {
-if [ ! -f /sbin/halt-init ]
-then
- mv /sbin/halt /sbin/halt-init
- mv /sbin/shutdown /sbin/shutdown-init
-fi
- rm -f /sbin/reboot
- rm -f /sbin/poweroff
-
-}
-
-pre_upgrade () {
-if [ ! -f /sbin/halt-init ]
-then
- mv /sbin/halt /sbin/halt-init
-fi
-
-if [ ! -f /sbin/shutdown-init ]
-then
- mv /sbin/shutdown /sbin/shutdown-init
-fi
- rm -f /sbin/reboot
- rm -f /sbin/poweroff
-
-}
-
-post_install () {
- mkdir /var/service
- [ -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
- [ -e /sbin/shutdown ] || ln -s /sbin/shutdown.script /sbin/shutdown
-}
-
-# arg 1: the new package version
-# arg 2: the old package version
-
-post_upgrade(){
- /bin/true
-}
-
-op=$1
-shift
-
-$op $*