summaryrefslogtreecommitdiff
path: root/openwrt/rhctl/files/switchctl.init
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/rhctl/files/switchctl.init')
-rwxr-xr-xopenwrt/rhctl/files/switchctl.init8
1 files changed, 4 insertions, 4 deletions
diff --git a/openwrt/rhctl/files/switchctl.init b/openwrt/rhctl/files/switchctl.init
index c947e40..24ed62f 100755
--- a/openwrt/rhctl/files/switchctl.init
+++ b/openwrt/rhctl/files/switchctl.init
@@ -24,7 +24,7 @@ start_daemon() {
for option in $CONFIG_OPTIONS
do
- config_get value "switchctl" "$option"
+ config_get value "$1" "$option"
option=`echo $option | tr '_' '-'`
if [ -n "$value" ]; then
args="$args --$option $value"
@@ -32,7 +32,7 @@ start_daemon() {
done
local status="OK"
$DAEMON --write-pid $PIDFILE $args || status="failed"
- echo -n "($status)"
+ echo -n " ($status)"
}
start() {
@@ -48,9 +48,9 @@ stop() {
if [ -f $PIDFILE ]; then
kill `cat $PIDFILE` > /dev/null 2>&1
rm -f $PIDFILE > /dev/null 2>&1
- echo -n " Ok"
+ echo -n " (Ok)"
else
- echo -n " not running"
+ echo -n " (not running)"
fi
echo "."
}