summaryrefslogtreecommitdiffstats
path: root/main/sysklogd/sysklogd.pre-deinstall
diff options
context:
space:
mode:
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