mvebu: shrink amount of packages and reorganize them
[openwrt/staging/dedeckeh.git] / target / linux / mvebu / base-files / lib / preinit / 79_move_config
1 #!/bin/sh
2 # Copyright (C) 2015 OpenWrt.org
3
4 BOOTPART=/dev/mmcblk0p1
5
6 . /lib/functions.sh
7
8 move_config() {
9 if [ -b $BOOTPART ]; then
10 case $(board_name) in
11 turris-omnia)
12 insmod nls_cp437
13 insmod nls_iso8859-1
14 insmod fat
15 insmod vfat
16 ;;
17 esac
18 mkdir -p /boot
19 mount -o rw,noatime $BOOTPART /boot
20 [ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
21 umount /boot
22 fi
23 }
24
25 boot_hook_add preinit_mount_root move_config