mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-23 23:59:53 +02:00
83f0561da1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27132 3c298f89-4303-0410-b956-a3cf2f4a3e73
24 lines
446 B
Bash
Executable File
24 lines
446 B
Bash
Executable File
#!/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
|