diff options
author | Christian Pointner <equinox@helsinki.at> | 2009-11-17 15:35:15 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2009-11-17 15:35:15 (GMT) |
commit | b1ae0fb1e45f4d6cc79200b30b18a7aac0f9b7de (patch) | |
tree | 69ed56187e94ca1ecd2cef2a082aef769dc05eac /openwrt/rhctl/files/switchctl.init | |
parent | 0e5843d0ab4bed1a8bf9afb11834b4cc71d11adf (diff) |
added dependency to udev and init script for it
removed dependency to socat (not working anyway)
some fixes at openwrt package
Diffstat (limited to 'openwrt/rhctl/files/switchctl.init')
-rwxr-xr-x | openwrt/rhctl/files/switchctl.init | 8 |
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 "." } |