projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unified preinit environment
[openwrt.git]
/
package
/
base-files
/
files
/
sbin
/
ifdown
diff --git
a/package/base-files/files/sbin/ifdown
b/package/base-files/files/sbin/ifdown
index
e00a4e3
..
5a98003
100755
(executable)
--- a/
package/base-files/files/sbin/ifdown
+++ b/
package/base-files/files/sbin/ifdown
@@
-5,7
+5,7
@@
[ $# = 0 ] && { echo " $0 <group>"; exit; }
[ "x$1" = "x-a" ] && {
config_cb() {
[ $# = 0 ] && { echo " $0 <group>"; exit; }
[ "x$1" = "x-a" ] && {
config_cb() {
- [ -z "$2" ] || eval "$0 $2"
+ [
interface != "$1" -o
-z "$2" ] || eval "$0 $2"
}
config_load network
exit
}
config_load network
exit
@@
-21,7
+21,7
@@
config_get proto "$cfg" proto
config_get iface "$cfg" device
[ "$proto" = "static" ] && {
config_get iface "$cfg" device
[ "$proto" = "static" ] && {
- env -i ACTION="ifdown" INTERFACE="$c
onfi
g" DEVICE="$iface" PROTO=static /sbin/hotplug-call "iface" &
+ env -i ACTION="ifdown" INTERFACE="$c
f
g" DEVICE="$iface" PROTO=static /sbin/hotplug-call "iface" &
}
# call interface stop handler
}
# call interface stop handler
This page took
0.022089 seconds
and
4
git commands to generate.