You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
384 B
Plaintext
21 lines
384 B
Plaintext
9 years ago
|
#!/bin/sh
|
||
|
# Copyright (C) 2015 OpenWrt.org
|
||
|
|
||
5 years ago
|
. /lib/upgrade/common.sh
|
||
|
|
||
9 years ago
|
BOOTPART=/dev/mmcblk0p1
|
||
|
|
||
|
move_config() {
|
||
|
if [ -b $BOOTPART ]; then
|
||
|
insmod nls_cp437
|
||
|
insmod nls_iso8859-1
|
||
|
insmod fat
|
||
|
insmod vfat
|
||
9 years ago
|
mkdir -p /boot
|
||
|
mount -t vfat -o rw,noatime $BOOTPART /boot
|
||
5 years ago
|
[ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
|
||
9 years ago
|
fi
|
||
|
}
|
||
|
|
||
|
boot_hook_add preinit_mount_root move_config
|