package/iptables: fix compile failure on gentoo build system (thanks nbd)
[openwrt.git] / package / base-files / files / sbin / ifup
1 #!/bin/sh
2 # Copyright (C) 2006 OpenWrt.org
3
4 /sbin/ifdown "$@"
5
6 . /etc/functions.sh
7 [ $# = 0 ] && { echo " $0 <group>"; exit; }
8 [ "x$1" = "x-a" ] && {
9 [ -e "/tmp/resolv.conf.auto" ] && rm /tmp/resolv.conf.auto
10 config_cb() {
11 [ interface != "$1" -o -z "$2" ] || eval "$0 $2"
12 }
13 config_load network
14 exit
15 }
16
17 include /lib/network
18 scan_interfaces
19
20 config_get ifname "$1" device
21 for dev in $ifname; do
22 setup_interface "$dev" "$1"
23 done
This page took 0.038967 seconds and 5 git commands to generate.