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
index 01d04881c4c61eb8e667eca2a70bf37ce4fa15aa..ba197f1995dff0cb25d1528ffdfba3edf2cc8136 100755
(executable)
--- a/
target/linux/lantiq/base-files/sbin/dsl_notify.sh
+++ b/
target/linux/lantiq/base-files/sbin/dsl_notify.sh
@@
-16,7
+16,6
@@
include /lib/network
scan_interfaces
include /lib/network
scan_interfaces
-local led
config_load system
config_get led led_dsl sysfs
if [ -n "$led" ]; then
config_load system
config_get led led_dsl sysfs
if [ -n "$led" ]; then
@@
-28,18
+27,14
@@
if [ -n "$led" ]; then
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