mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-20 21:48:59 +03:00
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
This commit is contained in:
parent
bf2b85e638
commit
629deb3c0d
@ -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')"
|
||||
|
Loading…
Reference in New Issue
Block a user