summaryrefslogtreecommitdiff
path: root/preinst-runit
diff options
context:
space:
mode:
Diffstat (limited to 'preinst-runit')
-rw-r--r--preinst-runit24
1 files changed, 0 insertions, 24 deletions
diff --git a/preinst-runit b/preinst-runit
deleted file mode 100644
index 23d8792..0000000
--- a/preinst-runit
+++ /dev/null
@@ -1,24 +0,0 @@
1# -*- shell-script -*-
2SV_CURRENT=/etc/runit/runsvdir/current
3SV_DEFAULT=/etc/runit/runsvdir/default
4SV_DIR=/etc/service
5
6if [ ! -e "$SV_CURRENT" ] ; then
7 ln -s default "$SV_CURRENT"
8elif [ ! -L "$SV_CURRENT" ] ; then
9 echo "unsupported: $SV_CURRENT exists, but is not symbolic link"
10 exit 1
11fi
12
13if [ ! -e "$SV_DIR" ] ; then
14 ln -sn "$SV_CURRENT" "$SV_DIR"
15fi
16
17if [ "$(readlink "$SV_DIR")" != "$SV_CURRENT" ] ; then
18 echo "unsupported: $SV_DIR exists, but does not point to $SV_CURRENT"
19 exit 1
20fi
21
22# Local Variables:
23# eval: (sh-set-shell "sh" t nil)
24# End: