mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-04 06:07:30 +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,10 +13,6 @@
|
||||
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" ] && {
|
||||
@ -25,6 +21,11 @@ url=$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')"
|
||||
main="$(find_mtd_part 'rootfs')"
|
||||
[ -z "$boot" -o -z "$main" ] && {
|
||||
|
Loading…
x
Reference in New Issue
Block a user