Lines 8-14
Link Here
|
8 |
[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source /etc/init.d/functions.sh |
8 |
[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source /etc/init.d/functions.sh |
9 |
|
9 |
|
10 |
# User must be root to run most script stuff (except status) |
10 |
# User must be root to run most script stuff (except status) |
11 |
if [[ ${EUID} != "0" ]] && [[ " $* " != " status " ]] ; then |
11 |
if [[ ${EUID} != "0" ]] && ! [[ "$*" =~ " status" ]] ; then |
12 |
eerror "$0: must be root to run init scripts" |
12 |
eerror "$0: must be root to run init scripts" |
13 |
exit 1 |
13 |
exit 1 |
14 |
fi |
14 |
fi |