rendered paste bodyIndex: ifup
===================================================================
--- ifup (revision 245)
+++ ifup (working copy)
@@ -29,9 +29,19 @@
config_get mode $ifn mode
config_get ipaddr $ifn ipaddr
+
+ rm -f /etc/resolv.conf
touch /tmp/resolv.conf
case "$mode" in
static)
+ ln -s /tmp/resolv.conf /etc/resolv.conf
+ ;;
+ *)
+ ln -s /etc/resolv.conf.fon /etc/resolv.conf
+ ;;
+ esac
+ case "$mode" in
+ static)
config_get netmask $ifn netmask
config_get dhcp $ifn dhcp
netmask=${netmask:-255.255.255.0}