From 35cbf0d9385af66d9ab2dad3facba3e1845ae5a7 Mon Sep 17 00:00:00 2001 From: mbm Date: Fri, 29 Apr 2005 07:18:24 +0000 Subject: *** empty log message *** git-svn-id: svn://svn.openwrt.org/openwrt/trunk@754 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/target/default/target_skeleton/sbin/ifup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openwrt/target/default/target_skeleton/sbin/ifup') diff --git a/openwrt/target/default/target_skeleton/sbin/ifup b/openwrt/target/default/target_skeleton/sbin/ifup index 72efa6901..4236de06b 100755 --- a/openwrt/target/default/target_skeleton/sbin/ifup +++ b/openwrt/target/default/target_skeleton/sbin/ifup @@ -45,11 +45,12 @@ } done ;; dhcp) + ip=$(nvram get ${type}_ipaddr) pidfile=/tmp/dhcp-${type}.pid if [ -f $pidfile ]; then $DEBUG kill $(cat $pidfile) fi - ${DEBUG:-eval} "udhcpc -i $if -b -p $pidfile &" + ${DEBUG:-eval} "udhcpc -i $if ${ip:+-r $ip} -b -p $pidfile &" ;; pppoe) # handled by /etc/init.d/S50pppoe -- cgit v1.2.3