netifd: add flow steering mode to the packet steering script
[openwrt/openwrt.git] / target / linux / mvebu / base-files / lib / preinit / 79_move_config
1 # Copyright (C) 2015 OpenWrt.org
2
3 . /lib/functions.sh
4 . /lib/upgrade/common.sh
5
6 move_config() {
7 local partdev
8
9 if export_bootdevice && export_partdevice partdev 1; then
10 case $(board_name) in
11 cznic,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 "/dev/$partdev" /boot
20 [ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
21 umount /boot
22 fi
23 }
24
25 boot_hook_add preinit_mount_root move_config