aboutsummaryrefslogtreecommitdiffstats
path: root/community/inetutils-syslogd/inetutils-syslogd.setup
diff options
context:
space:
mode:
Diffstat (limited to 'community/inetutils-syslogd/inetutils-syslogd.setup')
-rw-r--r--community/inetutils-syslogd/inetutils-syslogd.setup28
1 files changed, 28 insertions, 0 deletions
diff --git a/community/inetutils-syslogd/inetutils-syslogd.setup b/community/inetutils-syslogd/inetutils-syslogd.setup
new file mode 100644
index 0000000000..7c82513915
--- /dev/null
+++ b/community/inetutils-syslogd/inetutils-syslogd.setup
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+NORMAL="\033[1;0m"
+STRONG="\033[1;1m"
+RED="\033[1;31m"
+GREEN="\033[1;32m"
+
+print_stop() {
+ local prompt="${STRONG}$1 ${RED}$2${NORMAL}"
+ printf "${prompt} %s"
+}
+
+print_start() {
+ local prompt="${STRONG}$1 ${GREEN}$2${NORMAL}"
+ printf "${prompt} %s"
+}
+
+print_stop "\nWould you like to STOP BusyBox Syslog & remove it from the Boot Runlevel ?" "[ Enter or Y to remove ]:"; read ans
+if [ -z "$ans" ] || [ "$ans" = "y" ] || [ "$ans" = "Y" ]; then
+ echo; rc-update del syslog boot; rc-service syslog stop; rc-service klogd stop
+fi
+
+print_start "\nWould you like to START inetutils-syslogd & add it to the Boot Runlevel ?" "[ Enter or Y to add ]:"; read ans
+if [ -z "$ans" ] || [ "$ans" = "y" ] || [ "$ans" = "Y" ]; then
+ echo; rc-update add inetutils-syslogd boot; rc-service inetutils-syslogd start; rc-service cron restart; echo
+fi
+
+exit 0