#!/bin/sh TMP=/tmp/.set echo "successfully installed" echo "syncing disk" sync if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1` FREE=`expr $SPACE - 100` echo new freespace size $FREE kb fi echo "Rebooting Box in 10s..." sleep 5 (sleep 10;init 6) & exit 0