projects/aports·blob master · refs

28 lines · 876 B

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