7 find /etc
/runlevels
-maxdepth 1 -type l |
sort | \
9 TMPRESULT
=`rc-service ${svc##*/} status 2> /dev/null`
11 if [ -z "$TMPRESULT" ]; then
12 if [ "$retval" != 0 ]; then
18 SVCSTATUS
=`echo "$TMPRESULT" | cut -d : -f 2`
20 echo "${svc##*/}$SVCSTATUS"
25 SVC
=`$DIALOG --stdout --backtitle "Run services" --title "" --clear --ok-label "Run/Stop" --cancel-label "Exit" --menu "Services:" 20 61 15 $(lsservices)`
29 if [ "$SVC" != "" ]; then
30 rc-service
$SVC status |
grep -qw "started$" && rc-service
$SVC stop || rc-service
$SVC start