correct webconfig scripts
[debian6500.git] / master / opt / script / flash_fe306
index 423b6d4b9be1e0a01ba8247259852ab233e60ad9..c95aa2da9af134358fa7718116332e59a28de607 100755 (executable)
@@ -61,11 +61,6 @@ for f in $LIST; do
     [ -f $FIRMWARE/$f ] || { fail "Can't find '$FIRMWARE/$f'"; exit 1; }
 done
 
-# check mode
-
-protect=""
-[ "$DRY" = yes ] && protect="!echo"
-
 # flash firmware
 
 title "flash fe306 '$HOST'"
@@ -76,7 +71,8 @@ quote USER none
 quote PASS none
 binary
 cd flash
-$(for f in $LIST; do echo "$protect send $FIRMWARE/$f"; done)
+lcd $FIRMWARE
+$(for f in $LIST; do echo "!echo send $f"; [ "$DRY" = yes ] || echo "send $f"; done)
 bye
 EOF