First check for arguments before even getting an IP address
SVN-Revision: 10110
This commit is contained in:
parent
59066dc0f6
commit
318cbc1fe8
1 changed files with 9 additions and 8 deletions
|
@ -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…
Reference in a new issue