apm821xx: add support for the Western Digital MyBook Live Series
[openwrt/openwrt.git] / target / linux / apm821xx / base-files / lib / preinit / 79_move_config
1 #!/bin/sh
2
3 BOOTPART=/dev/sda1
4
5 move_config() {
6 if [ -b $BOOTPART ]; then
7 mkdir -p /boot
8 mount -t ext4 -o rw,noatime $BOOTPART /boot
9 [ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
10 fi
11 }
12
13 boot_hook_add preinit_mount_root move_config