1#!/bin/sh 2# Copyright (C) 2015 OpenWrt.org 3 4BOOTPART=/dev/mmcblk0p1 5 6move_config() { 7 if [ -b $BOOTPART ]; then 8 insmod nls_cp437 9 insmod nls_iso8859-1 10 insmod fat 11 insmod vfat 12 mkdir -p /boot 13 mount -t vfat -o rw,noatime $BOOTPART /boot 14 [ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz / 15 fi 16} 17 18boot_hook_add preinit_mount_root move_config 19