You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
435 B

#!/bin/sh
# Copyright (C) 2006 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; do
setup_interface "$dev" "$1"
done