Browse Source

expect the firmware images in images/ subdirectory

Helge Jung 10 years ago
parent
commit
37dda578bf
3 changed files with 5 additions and 1 deletions
  1. 2 1
      .gitignore
  2. 3 0
      autoflash.sh
  3. 0 0
      images/.gitkeep

+ 2 - 1
.gitignore

@@ -1 +1,2 @@
-*.bin
+images/**
+!images/.gitkeep

+ 3 - 0
autoflash.sh

@@ -26,6 +26,9 @@ else
 	return 2
 fi
 
+# prepend images/ subdirectory to filename
+image="images/$image"
+
 echo -en "flashing image: $image ... "
 curl --basic -su admin:admin -e $hwver_page -F Filename=@$image $uploadurl > /dev/null
 curl --basic -su admin:admin -e $uploadurl http://192.168.0.1/userRpm/FirmwareUpdateTemp.htm > /dev/null

+ 0 - 0
images/.gitkeep