#!/bin/sh REVISION=`cat /etc/fon_revision` VERSION=`cat /etc/fon_version` #if [ $REVISION -gt 2 ] || [ $VERSION != "0.7.0" ] #then echo "Upgrading FON firmware and rebooting..." echo "This may take up to 10 minutes. Please be patient." echo "It's not necessary to reboot the router; just wait until you can reach the router again." echo "Flashing image..." mtd -e image -r write full_image image > /dev/null 2> /dev/null rm full_image (sleep 4; reboot) return 0 #else #echo "Sorry, your firmware needs to be remotely upgraded first." #echo "In order to do so, connect it to the Internet and wait for a few minutes," #echo "then check that the version is newer than 0.7.0 r2 on the Status Page" #return 1 #fi