瀏覽代碼

expect the firmware images in images/ subdirectory

Helge Jung 10 年之前
父節點
當前提交
37dda578bf
共有 3 個文件被更改,包括 5 次插入1 次删除
  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