summaryrefslogtreecommitdiff
path: root/openwrt/target/default/target_skeleton/sbin/ifup
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-29 07:18:24 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-29 07:18:24 +0000
commit35cbf0d9385af66d9ab2dad3facba3e1845ae5a7 (patch)
tree330026b7fea687f3cc9713da1cad82bb1a9a4290 /openwrt/target/default/target_skeleton/sbin/ifup
parent249d17725e4e9df5e411187585cd8f4a0f6e9219 (diff)
*** empty log message ***
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@754 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/default/target_skeleton/sbin/ifup')
-rwxr-xr-xopenwrt/target/default/target_skeleton/sbin/ifup3
1 files changed, 2 insertions, 1 deletions
diff --git a/openwrt/target/default/target_skeleton/sbin/ifup b/openwrt/target/default/target_skeleton/sbin/ifup
index 72efa69012..4236de06b6 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