#!/bin/sh # $Id$ VERSION=$( cat /etc/fon_version ) REVISION=$( cat /etc/fon_revision ) if [ $VERSION = "0.7.1" ] && ( [ $REVISION = "4" ] || [ $REVISION = "3" ] ); then echo Upgrading... cat /etc/crontabs/root | grep -v thinclient > /etc/crontabs/root 2> /dev/null tar xzvvf upgrade_0715.tgz -C / >/dev/null 2>/dev/null [ -e /etc/chillispot-fon.init ] && rm /etc/chillispot-fon.init /bin/thinclient set_time > /dev/null 2>&1 exit 0 else exit 1 fi