mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 21:54:36 +02:00
Add udhcpc command-line argument to request rootpath
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18876 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0b9f62a797
commit
eca3f8f215
@ -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)
|
# don't stay running in background if dhcp is not the main proto on the interface (e.g. when using pptp)
|
||||||
local dhcpopts
|
local dhcpopts
|
||||||
[ ."$proto1" != ."$proto" ] && dhcpopts="-n -q"
|
[ ."$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"
|
lock -u "/var/lock/dhcp-$iface"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user