apm821xx: enable metadata for packaging
[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 . /lib/functions.sh
7
8 [ "$(board_name)" = "mbl" ] || return
9 if [ -b $BOOTPART ]; then
10 mkdir -p /boot
11 mount -t ext4 -o rw,noatime $BOOTPART /boot
12 [ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
13 fi
14 }
15
16 boot_hook_add preinit_mount_root move_config