1d4b694574c5acbc5bcac39cf3f2094026058ac5
[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 mkdir -p /boot
14 [ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime /dev/mmcblk0p1 /boot
15 cp -af "$CONF_TAR" /boot/
16 sync
17 umount /boot
18 }