[x-wrt] r4808 committed - do not save unnecessary data to dhcp interface to get proper setting o...

2 views
Skip to first unread message

codesite...@google.com

unread,
Aug 16, 2009, 7:33:31 PM8/16/09
to x-wrt-...@googlegroups.com
Revision: 4808
Author: fof...@gmail.com
Date: Sun Aug 16 16:32:44 2009
Log: do not save unnecessary data to dhcp interface to get proper setting
of default router
http://code.google.com/p/x-wrt/source/detail?r=4808

Modified:
/trunk/package/webif/files/www/cgi-bin/webif/network.sh

=======================================
--- /trunk/package/webif/files/www/cgi-bin/webif/network.sh Fri Jan 16
18:10:56 2009
+++ /trunk/package/webif/files/www/cgi-bin/webif/network.sh Sun Aug 16
16:32:44 2009
@@ -272,13 +272,14 @@
uci_set "network" "$interface" "defaultroute" "$FORM_defaultroute"
uci_set "network" "$interface" "ppp_redial" "$FORM_ppp_redial";;
esac
-
+ if "$FORM_proto" != "dhcp"; then
uci_set "network" "$interface" "ipaddr" "$FORM_ipaddr"
uci_set "network" "$interface" "ip6addr" "$FORM_ip6addr"
uci_set "network" "$interface" "netmask" "$FORM_netmask"
uci_set "network" "$interface" "gateway" "$FORM_gateway"
uci_set "network" "$interface" "ip6gw" "$FORM_gateway6"
uci_set "network" "$interface" "dns" "$FORM_dns"
+ fi
}
fi

Reply all
Reply to author
Forward
0 new messages