[Runnix-commits] SF.net SVN: runnix:[113] trunk
Status: Alpha
Brought to you by:
krisk84
From: <abe...@us...> - 2010-12-10 00:19:37
|
Revision: 113 http://runnix.svn.sourceforge.net/runnix/?rev=113&view=rev Author: abelbeck Date: 2010-12-10 00:19:31 +0000 (Fri, 10 Dec 2010) Log Message: ----------- Add VERIFY_LOCAL variable to os/default.conf to verify local run images on every boot, disabled by default Note: this is a change from the previous default behavior Modified Paths: -------------- trunk/target/generic/target_skeleton/runnix trunk/toolchain/runrelease/files/rootfs_vfat/os/default.conf Modified: trunk/target/generic/target_skeleton/runnix =================================================================== --- trunk/target/generic/target_skeleton/runnix 2010-12-09 14:57:00 UTC (rev 112) +++ trunk/target/generic/target_skeleton/runnix 2010-12-10 00:19:31 UTC (rev 113) @@ -55,7 +55,7 @@ echo " -Runnix version $RUNVER starting" +Runnix version '$RUNVER' starting..." mount -t proc none /proc mount -t tmpfs none /tmp @@ -208,15 +208,18 @@ fi if [ -z "$IMGVER" ]; then - echo "Verifying $RUNIMG..." + if [ "$VERIFY_LOCAL" = "yes" ]; then + echo "Verifying $RUNIMG..." - if sha1sum -cs $RUNIMG.sha1; then - echo "$RUNIMG verified" - IMGVER=1 + if sha1sum -cs $RUNIMG.sha1; then + echo "$RUNIMG verified" + IMGVER=1 + else + echo "$RUNIMG not verified" + fi else - echo "$RUNIMG not verified" + echo "Skip Verifying $RUNIMG" fi - fi if [ -f $BASE/os/$RUNIMG.conf ]; then Modified: trunk/toolchain/runrelease/files/rootfs_vfat/os/default.conf =================================================================== --- trunk/toolchain/runrelease/files/rootfs_vfat/os/default.conf 2010-12-09 14:57:00 UTC (rev 112) +++ trunk/toolchain/runrelease/files/rootfs_vfat/os/default.conf 2010-12-10 00:19:31 UTC (rev 113) @@ -37,4 +37,9 @@ # Sometimes we need to sleep after upgrade # This is a hack that you should not use -# USLEEP="10" +#USLEEP="10" + +# Set to "yes" to verify local run images on every boot +# Note: Upgrades via a URL are always verified +#VERIFY_LOCAL="yes" + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |