netifd: Set source IP for DHCP static routes as well
authorcyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 12 Dec 2014 09:39:07 +0000 (09:39 +0000)
committercyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 12 Dec 2014 09:39:07 +0000 (09:39 +0000)
commitf232773c18aeac93eb46f76d5efa235c5ce78aa9
treeedb11d8c5006690bd23c437b14f4ff350d951387
parentf7f43f2a32eb60832dd3bfeffc0bb4c9f1579e0e
netifd: Set source IP for DHCP static routes as well

Commit ce92f6650bd8a86db04c7a6cbb58e7fdb200a7e6 added source IP support
for DHCP default routes. As a side effect of this change the default route
could be present twice in netifd (once with source IP set and once with
source IP unset) if it was sent by the server in both the router and static
route options. Therefore add source IP support as well for static routes as this
case was not considered. Additional remove unused parameter type.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43645 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/config/netifd/files/lib/netifd/dhcp.script