diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-01-04 04:20:24 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-01-04 04:20:24 +0000 |
commit | 318cbc1fe86c31fb48b8100e499487a44adf333c (patch) | |
tree | 67f71005dac0760931688beca8d801a879dffe28 /target | |
parent | 59066dc0f6eee433d8517b05fad150e78e439559 (diff) | |
download | mtk-20170518-318cbc1fe86c31fb48b8100e499487a44adf333c.zip mtk-20170518-318cbc1fe86c31fb48b8100e499487a44adf333c.tar.gz mtk-20170518-318cbc1fe86c31fb48b8100e499487a44adf333c.tar.bz2 |
First check for arguments before even getting an IP address
SVN-Revision: 10110
Diffstat (limited to 'target')
-rwxr-xr-x | target/linux/adm5120/router_le/base-files/sbin/wget2nand | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/target/linux/adm5120/router_le/base-files/sbin/wget2nand b/target/linux/adm5120/router_le/base-files/sbin/wget2nand index 9b27b57..8843c28 100755 --- a/target/linux/adm5120/router_le/base-files/sbin/wget2nand +++ b/target/linux/adm5120/router_le/base-files/sbin/wget2nand @@ -13,17 +13,18 @@ exit 1 } -# first get an address for br-lan using udhcpc -killall udhcpc -/sbin/udhcpc -i br-lan - # need to find the wget server from the command line url=$1 [ -z "$url" ] && { - echo "No URL specified for image TGZ" - echo "Usage : $0 URL" - exit 1 -} + echo "No URL specified for image TGZ" + echo "Usage : $0 URL" + exit 1 +} + + +# first get an address for br-lan using udhcpc +killall udhcpc +/sbin/udhcpc -i br-lan boot="$(find_mtd_part 'RouterBoard NAND Boot')" main="$(find_mtd_part 'rootfs')" |