18 |
return 1 |
return 1 |
19 |
fi |
fi |
20 |
|
|
21 |
|
if [[ -n ${MROOT} ]] && [[ ${MROOT} != / ]] |
22 |
|
then |
23 |
|
case "${command}" in |
24 |
|
start|stop|restart|reload) |
25 |
|
eecho "Command not available while \$MROOT is set" |
26 |
|
return 1 |
27 |
|
;; |
28 |
|
esac |
29 |
|
fi |
30 |
|
|
31 |
case "${command}" in |
case "${command}" in |
32 |
start) /etc/rc.d/init.d/"${service}" start ;; |
start) /etc/rc.d/init.d/"${service}" start ;; |
33 |
stop) /etc/rc.d/init.d/"${service}" stop ;; |
stop) /etc/rc.d/init.d/"${service}" stop ;; |
53 |
return 1 |
return 1 |
54 |
fi |
fi |
55 |
|
|
56 |
|
if [[ -n ${MROOT} ]] && [[ ${MROOT} != / ]] |
57 |
|
then |
58 |
|
case "${command}" in |
59 |
|
status) |
60 |
|
eecho "Command not available while \$MROOT is set" |
61 |
|
return 1 |
62 |
|
;; |
63 |
|
esac |
64 |
|
fi |
65 |
|
|
66 |
case "${command}" in |
case "${command}" in |
67 |
status) /etc/rc.d/init.d/"${service}" status ;; |
status) /etc/rc.d/init.d/"${service}" status ;; |
68 |
enabled) rc-config show "${service}" ;; |
enabled) rc-config show "${service}" ;; |
70 |
*) help_system_service && return ;; |
*) help_system_service && return ;; |
71 |
esac |
esac |
72 |
} |
} |
|
|
|