summaryrefslogtreecommitdiffstats
path: root/main/sysklogd/sysklogd.pre-deinstall
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-03-05 13:59:07 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-03-05 13:59:07 +0000
commitcd8f1d3141e88c3b0e72d3f240f8c17dd297ae28 (patch)
tree3566487f93123518deb62704a24785a3e2999957 /main/sysklogd/sysklogd.pre-deinstall
parentf75969afaa87c8f99a8a8586dfa30f55f31984c5 (diff)
downloadaports-cd8f1d3141e88c3b0e72d3f240f8c17dd297ae28.tar.bz2
aports-cd8f1d3141e88c3b0e72d3f240f8c17dd297ae28.tar.xz
main/sysklogd: automatic configure of service runlevels added
Diffstat (limited to 'main/sysklogd/sysklogd.pre-deinstall')
-rw-r--r--main/sysklogd/sysklogd.pre-deinstall5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/sysklogd/sysklogd.pre-deinstall b/main/sysklogd/sysklogd.pre-deinstall
new file mode 100644
index 000000000..4ed8f79f1
--- /dev/null
+++ b/main/sysklogd/sysklogd.pre-deinstall
@@ -0,0 +1,5 @@
+#!/bin/sh
+INIT=sysklogd
+RUNLEVEL=`rc-update show | grep $INIT | awk '{ print $3 }'`
+rc-update del $INIT $RUNLEVEL
+rc-update add syslog $RUNLEVEL