1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2007 OpenWrt.org
11 config_get _val
"$section" "$option"
12 [ -n "$_val" ] && append args
"$3$_val"
19 append_string
"$cfg" broadcast
"--host="
20 append_string
"$cfg" port
"--port="
21 append_string
"$cfg" password
"--passwd="
22 append_string
"$cfg" mac
""
23 config_get_bool enabled
"$cfg" "enabled" '1'
24 [ "$enabled" -gt 0 ] && /usr
/bin
/wol
$args
29 config_foreach start_service wol-target