summaryrefslogtreecommitdiff
path: root/target/default/target_skeleton/sbin
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
commit9a7dcab25717558df58aa90425957298ef250b36 (patch)
treeb28fc813602d82c0fec81d57f0becedc43321915 /target/default/target_skeleton/sbin
parentc7075be717c899823159c65c21a8ba594ada34fb (diff)
*** empty log message ***
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@754 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/default/target_skeleton/sbin')
-rwxr-xr-xtarget/default/target_skeleton/sbin/ifup3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/default/target_skeleton/sbin/ifup b/target/default/target_skeleton/sbin/ifup
index 72efa69012..4236de06b6 100755
--- a/target/default/target_skeleton/sbin/ifup
+++ b/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