projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First check for arguments before even getting an IP address
[openwrt-10.03/.git]
/
target
/
linux
/
adm5120
/
router_le
/
base-files
/
sbin
/
wget2nand
diff --git
a/target/linux/adm5120/router_le/base-files/sbin/wget2nand
b/target/linux/adm5120/router_le/base-files/sbin/wget2nand
index 9b27b579b4b238794fa3547e8e197edb1ba7a10b..8843c286ee0b20a8c3bcd7549ef8c1e44b0fa240 100755
(executable)
--- a/
target/linux/adm5120/router_le/base-files/sbin/wget2nand
+++ b/
target/linux/adm5120/router_le/base-files/sbin/wget2nand
@@
-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
url=$1
[ -z "$url" ] && {
# 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')"
boot="$(find_mtd_part 'RouterBoard NAND Boot')"
main="$(find_mtd_part 'rootfs')"