rewrite of the network scripts and configuration
[openwrt.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 case "$iftype" in
8 bridge)
9 config_get ifname "$1" ifnames
10 ;;
11 *)
12 config_get ifname "$1" ifname
13 ;;
14 esac
15
16 for dev in $ifname; do
17 setup_interface "$dev" "$1"
18 done
This page took 0.046903 seconds and 5 git commands to generate.