Skip to content
Snippets Groups Projects
Commit 318cbc1f authored by Florian Fainelli's avatar Florian Fainelli
Browse files

First check for arguments before even getting an IP address

SVN-Revision: 10110
parent 59066dc0
No related branches found
No related tags found
No related merge requests found
...@@ -13,17 +13,18 @@ ...@@ -13,17 +13,18 @@
exit 1 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 # need to find the wget server from the command line
url=$1 url=$1
[ -z "$url" ] && { [ -z "$url" ] && {
echo "No URL specified for image TGZ" echo "No URL specified for image TGZ"
echo "Usage : $0 URL" echo "Usage : $0 URL"
exit 1 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')" boot="$(find_mtd_part 'RouterBoard NAND Boot')"
main="$(find_mtd_part 'rootfs')" main="$(find_mtd_part 'rootfs')"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment