Add udhcpc command-line argument to request rootpath
authorHamish Guthrie <hcg@openwrt.org>
Mon, 21 Dec 2009 10:25:15 +0000 (10:25 +0000)
committerHamish Guthrie <hcg@openwrt.org>
Mon, 21 Dec 2009 10:25:15 +0000 (10:25 +0000)
SVN-Revision: 18876

package/base-files/files/lib/network/config.sh

index fbbf0e119b2036d074e6da1a83ee6d8fc33d05ca..ccdfc38b3df867384144896dc99c7a096e7c4f18 100755 (executable)
@@ -289,7 +289,7 @@ setup_interface() {
                                # don't stay running in background if dhcp is not the main proto on the interface (e.g. when using pptp)
                                local dhcpopts
                                [ ."$proto1" != ."$proto" ] && dhcpopts="-n -q"
-                               $DEBUG eval udhcpc -t 0 -i "$iface" ${ipaddr:+-r $ipaddr} ${hostname:+-H $hostname} ${clientid:+-c $clientid} -b -p "$pidfile" ${dhcpopts:- -R &}
+                               $DEBUG eval udhcpc -t 0 -i "$iface" ${ipaddr:+-r $ipaddr} ${hostname:+-H $hostname} ${clientid:+-c $clientid} -b -p "$pidfile" ${dhcpopts:- -O rootpath -R &}
                                lock -u "/var/lock/dhcp-$iface"
                        fi
                ;;