change the way resolv.conf is being created, so that it also works when dnsmasq is...
[openwrt/svn-archive/openwrt.git] / openwrt / package / base-files / default / etc / init.d / S40network
1 #!/bin/sh
2 case "$1" in
3 start|restart)
4 rm -f /tmp/resolv.conf
5 ln -s /tmp/resolv.conf.auto /tmp/resolv.conf
6 ifup_interfaces=$(nvram get ifup_interfaces)
7 ifup_interfaces=${ifup_interfaces:-"lan wan wifi"}
8 for iface in $ifup_interfaces; do
9 ifup $iface
10 if [ "$iface" = "wifi" ]; then
11 $iface up
12 fi
13 done
14 ;;
15 esac