aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorHamish Guthrie <hcg@openwrt.org>2009-12-21 10:25:15 +0000
committerHamish Guthrie <hcg@openwrt.org>2009-12-21 10:25:15 +0000
commit9653a4bf680dd3892c35267f650455aa5684945e (patch)
tree9f776fc454ed82240ca02486693b957c136127aa /package/base-files
parent9da77a9cd7c81ae66e330fd5b3fe7be4354b9925 (diff)
downloadupstream-9653a4bf680dd3892c35267f650455aa5684945e.tar.gz
upstream-9653a4bf680dd3892c35267f650455aa5684945e.tar.bz2
upstream-9653a4bf680dd3892c35267f650455aa5684945e.zip
Add udhcpc command-line argument to request rootpath
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18876 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index fbbf0e119b..ccdfc38b3d 100755
--- a/package/base-files/files/lib/network/config.sh
+++ b/package/base-files/files/lib/network/config.sh
@@ -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
;;