wol: cosmetic changes
authorOliver Ertl <oliver@ertl-net.net>
Wed, 19 Sep 2007 21:31:51 +0000 (21:31 +0000)
committerOliver Ertl <oliver@ertl-net.net>
Wed, 19 Sep 2007 21:31:51 +0000 (21:31 +0000)
SVN-Revision: 8850

net/wol/files/wol.config
net/wol/files/wol.init

index 3a29fcb23e12187a78fe64e42ed11a3e2c72570c..f49c96f0b970f361efed386a3a971fab0df03b0f 100644 (file)
@@ -1,3 +1,3 @@
 config wol-target
-        option mac       ''
-        option enabled   '0'
+       option mac       ''
+       option enabled   '0'
index 42b22625765ab39ac1eaafb2cecda113e3244579..18be8290f13972143a27dd233dec24833a328317 100644 (file)
@@ -4,27 +4,27 @@
 START=60
 
 append_string() {
-        local section="$1"
-        local option="$2"
-        local value="$3"
-        local _val
-        config_get _val "$section" "$option"
-        [ -n "$_val" ] && append args "$3$_val"
+       local section="$1"
+       local option="$2"
+       local value="$3"
+       local _val
+       config_get _val "$section" "$option"
+       [ -n "$_val" ] && append args "$3$_val"
 }
 
 start_service() {
-        local cfg="$1"
-        args=""
+       local cfg="$1"
+       args=""
 
-        append_string "$cfg" broadcast "--host="
-        append_string "$cfg" port "--port="
-        append_string "$cfg" password "--passwd="
-        append_string "$cfg" mac ""
-        config_get_bool enabled "$cfg" "enabled" '1'
-        [ "$enabled" -gt 0 ] && /usr/bin/wol $args
+       append_string "$cfg" broadcast "--host="
+       append_string "$cfg" port "--port="
+       append_string "$cfg" password "--passwd="
+       append_string "$cfg" mac ""
+       config_get_bool enabled "$cfg" "enabled" '1'
+       [ "$enabled" -gt 0 ] && /usr/bin/wol $args
 }
 
 start() {
-        config_load wol
-        config_foreach start_service wol-target
+       config_load wol
+       config_foreach start_service wol-target
 }