Skip to content
Snippets Groups Projects
Commit 629deb3c authored by florian's avatar florian
Browse files

First check for arguments before even getting an IP address

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10110 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent bf2b85e6
No related branches found
No related tags found
No related merge requests found
......@@ -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')"
......
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