Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 186459 | Differences between
and this patch

Collapse All | Expand All

(-)runscript.sh (-1 / +4 lines)
Lines 8-14 Link Here
8
[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source /sbin/functions.sh
8
[[ ${RC_GOT_FUNCTIONS} != "yes" ]] && source /sbin/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" ]] && ! [[ $2 == "status" && $# -eq 2 ]] ; then
11
if [[ ${EUID} != "0" ]] && ! [[ $2 == "status" && $# -eq 2 ]] && \
12
		! [[ $2 == "--quiet" && $3 == "status" && $# -eq 3 ]] && \
13
		! [[ $3 == "--quiet" && $2 == "status" && $# -eq 3 ]] \
14
		; then
12
	eerror "$0: must be root to run init scripts"
15
	eerror "$0: must be root to run init scripts"
13
	exit 1
16
	exit 1
14
fi
17
fi

Return to bug 186459