[pisa-src] r2560 - trunk/tools/testbed/plugins/classes/openwrt/deploy

  • From: Samuel Richter <samuel.richter@xxxxxxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 27 Apr 2011 07:33:58 +0200

Author: richter
Date: Wed Apr 27 07:33:58 2011
New Revision: 2560

Log:
improve deployment of openwrt

the sysupgrade utility supports adding an archive with router-specific files
with the -f switch.

Modified:
   trunk/tools/testbed/plugins/classes/openwrt/deploy

Modified: trunk/tools/testbed/plugins/classes/openwrt/deploy
==============================================================================
--- trunk/tools/testbed/plugins/classes/openwrt/deploy  Wed Apr 27 07:30:40 
2011        (r2559)
+++ trunk/tools/testbed/plugins/classes/openwrt/deploy  Wed Apr 27 07:33:58 
2011        (r2560)
@@ -1,5 +1,6 @@
 #!/bin/sh
-
+set +e
 pisa-testbed $NODE put  "$BIN_PATH/openwrt-$TESTBED_NAME.bin"
-pisa-testbed $NODE run mtd -r write "/tmp/openwrt-$TESTBED_NAME.bin" firmware
-pisa-testbed $NODE install  "$BIN_PATH/${FULL_NAME}_${VERSION}_all.ipk" -c 
"opkg install"
+pisa-testbed $NODE put  "$BIN_PATH/$FULL_NAME.tar.gz"
+pisa-testbed $NODE run sysupgrade -n -f "/tmp/$FULL_NAME.tar.gz" 
"/tmp/openwrt-$TESTBED_NAME.bin"
+set -e
-- 
This is the pisa developer mailing list. Please also subscribe to the main pisa 
list at:
//www.freelists.org/list/pisa

Other related posts:

  • » [pisa-src] r2560 - trunk/tools/testbed/plugins/classes/openwrt/deploy - Samuel Richter