| 1 | #!/bin/sh |
| 2 | |
| 3 | NORMAL="\033[1;0m" |
| 4 | STRONG="\033[1;1m" |
| 5 | RED="\033[1;31m" |
| 6 | GREEN="\033[1;32m" |
| 7 | |
| 8 | print_stop() { |
| 9 | local prompt="${STRONG}$1 ${RED}$2${NORMAL}" |
| 10 | printf "${prompt} %s" |
| 11 | } |
| 12 | |
| 13 | print_start() { |
| 14 | local prompt="${STRONG}$1 ${GREEN}$2${NORMAL}" |
| 15 | printf "${prompt} %s" |
| 16 | } |
| 17 | |
| 18 | print_stop "\nWould you like to STOP BusyBox Syslog & remove it from the Boot Runlevel ?" "[ Enter or Y to remove ]:"; read ans |
| 19 | if [ -z "$ans" ] || [ "$ans" = "y" ] || [ "$ans" = "Y" ]; then |
| 20 | echo; rc-update del syslog boot; rc-service syslog stop; rc-service klogd stop |
| 21 | fi |
| 22 | |
| 23 | print_start "\nWould you like to START inetutils-syslogd & add it to the Boot Runlevel ?" "[ Enter or Y to add ]:"; read ans |
| 24 | if [ -z "$ans" ] || [ "$ans" = "y" ] || [ "$ans" = "Y" ]; then |
| 25 | echo; rc-update add inetutils-syslogd boot; rc-service inetutils-syslogd start; rc-service cron restart; echo |
| 26 | fi |
| 27 | |
| 28 | exit 0 |