1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-04 20:32:21 +03:00

"-R" will not work as it needs the configured IP on the interface.

Thus this option leads to the warning message:
"udhcpc: bind(UDP): Cannot assign requested address"



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14408 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
markus 2009-02-04 14:58:31 +00:00
parent c4a3110a2e
commit 2416808ec0

View File

@ -227,7 +227,7 @@ dhcp_add() {
#check for an already active dhcp server on the interface, unless 'force' is set
config_get_bool force "$cfg" force 0
[ "$force" -gt 0 ] || {
udhcpc -n -q -R -s /bin/true -t 1 -i $ifname >&- && return 0
udhcpc -n -q -s /bin/true -t 1 -i $ifname >&- && return 0
}
config_get start "$cfg" start