#!/bin/sh
set -e
tar xf update20110727_data
flash_eraseall /dev/mtd1
nandwrite -p -n /dev/mtd1 zImage
rm -f /etc/event.d/*
tar xf update.tar -C /
python convconfig.py
sync
(
	sleep 30
	emit reboot
) &
true



