make network scripts more robust, prevent multiple instances of pppd and udhcpc for...
[openwrt/svn-archive/archive.git] / package / base-files / default / sbin / ifup
1 #!/bin/sh
2 # Copyright (C) 2006 OpenWrt.org
3
4 . /sbin/ifdown "$@"
5
6 config_get iftype "$1" type
7 config_get ifname "$1" device
8
9 for dev in $ifname; do
10 setup_interface "$dev" "$1"
11 done