First check for arguments before even getting an IP address
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 4 Jan 2008 04:20:24 +0000 (04:20 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 4 Jan 2008 04:20:24 +0000 (04:20 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10110 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/adm5120/router_le/base-files/sbin/wget2nand

index 9b27b57..8843c28 100755 (executable)
        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')"
This page took 0.026226 seconds and 4 git commands to generate.