projects
/
openwrt
/
staging
/
rmilecki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: remove bad local shell variable declarations
[openwrt/staging/rmilecki.git]
/
target
/
linux
/
lantiq
/
base-files
/
sbin
/
dsl_notify.sh
diff --git
a/target/linux/lantiq/base-files/sbin/dsl_notify.sh
b/target/linux/lantiq/base-files/sbin/dsl_notify.sh
old mode 100644
(file)
new mode 100755
(executable)
index
526a889
..
ba197f1
--- a/
target/linux/lantiq/base-files/sbin/dsl_notify.sh
+++ b/
target/linux/lantiq/base-files/sbin/dsl_notify.sh
@@
-16,30
+16,25
@@
include /lib/network
scan_interfaces
include /lib/network
scan_interfaces
-local default
config_load system
config_load system
-config_get
default led_adsl default
-if [
"$default" != 1
]; then
+config_get
led led_dsl sysfs
+if [
-n "$led"
]; then
case "$DSL_INTERFACE_STATUS" in
case "$DSL_INTERFACE_STATUS" in
- "HANDSHAKE") led_timer
adsl
500 500;;
- "TRAINING") led_timer
adsl
200 200;;
- "UP") led_on
adsl
;;
- *) led_off
adsl
+ "HANDSHAKE") led_timer
$led
500 500;;
+ "TRAINING") led_timer
$led
200 200;;
+ "UP") led_on
$led
;;
+ *) led_off
$led
esac
fi
esac
fi
-local interfaces=`ubus list network.interface.\* | cut -d"." -f3`
-local ifc
+interfaces=`ubus list network.interface.\* | cut -d"." -f3`
for ifc in $interfaces; do
for ifc in $interfaces; do
- local up
json_load "$(ifstatus $ifc)"
json_get_var up up
json_load "$(ifstatus $ifc)"
json_get_var up up
- local auto
config_get_bool auto "$ifc" auto 1
config_get_bool auto "$ifc" auto 1
- local proto
json_get_var proto proto
if [ "$DSL_INTERFACE_STATUS" = "UP" ]; then
json_get_var proto proto
if [ "$DSL_INTERFACE_STATUS" = "UP" ]; then