blob: 6acd2ed09978276636c6a1a27f27453d67b701b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# Copyright (C) 2006-2011 OpenWrt.org
/sbin/ifdown "$@"
. /etc/functions.sh
[ $# = 0 ] && { echo " $0 <group>"; exit; }
[ "x$1" = "x-a" ] && {
[ -e "/tmp/resolv.conf.auto" ] && rm /tmp/resolv.conf.auto
config_cb() {
[ interface != "$1" -o -z "$2" ] || eval "$0 $2"
}
config_load network
exit
}
include /lib/network
scan_interfaces
config_get ifname "$1" device
for dev in ${ifname:-$1}; do
setup_interface "$dev" "$1"
done
|