brcm2708: Implement sysupgrade
[openwrt/openwrt.git] / target / linux / brcm2708 / base-files / lib / upgrade / platform.sh
1 platform_check_image() {
2 # i know no way to verify the image
3 return 0;
4 }
5
6 platform_do_upgrade() {
7 sync
8 get_image "$1" | dd of=/dev/mmcblk0 bs=2M conv=fsync
9 sleep 1
10 }
11
12 platform_copy_config() {
13 mount -t vfat -o rw,noatime /dev/mmcblk0p1 /mnt
14 cp -af "$CONF_TAR" /mnt/
15 sync
16 umount /mnt
17 }