projects
/
openwrt
/
staging
/
mkresin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8970a12
)
avoid duplicate vlan add events
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 1 Aug 2008 03:01:25 +0000
(
03:01
+0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 1 Aug 2008 03:01:25 +0000
(
03:01
+0000)
SVN-Revision: 12057
package/base-files/files/lib/network/config.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/network/config.sh
b/package/base-files/files/lib/network/config.sh
index b3e9fed3fbc19a8bfe902b8c73abaa80baf506ed..0a7464495fdf152cbacf126c61441c5c0f359a1f 100755
(executable)
--- a/
package/base-files/files/lib/network/config.sh
+++ b/
package/base-files/files/lib/network/config.sh
@@
-61,7
+61,9
@@
add_vlan() {
[ "$1" = "$vif" ] || ifconfig "$1" >/dev/null 2>/dev/null || {
ifconfig "$vif" up 2>/dev/null >/dev/null || add_vlan "$vif"
$DEBUG vconfig add "$vif" "${1##*\.}"
+ return 0
}
+ return 1
}
# sort the device list, drop duplicates
@@
-94,7
+96,7
@@
prepare_interface() {
}
# Setup VLAN interfaces
- add_vlan "$iface"
+ add_vlan "$iface"
&& return 1
ifconfig "$iface" 2>/dev/null >/dev/null || return 0
# Setup bridging