projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
7e30292049daf470855fb739e501462fba6a838b
[openwrt/openwrt.git]
/
target
/
linux
/
imx6
/
base-files
/
lib
/
preinit
/
79_move_config
1
. /lib/imx6.sh
2
. /lib/functions.sh
3
. /lib/upgrade/common.sh
4
5
move_config() {
6
local board=$(board_name)
7
8
case "$board" in
9
apalis*)
10
if [ -b $(bootpart_from_uuid) ]; then
11
apalis_mount_boot
12
[ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
13
umount /boot
14
fi
15
;;
16
esac
17
}
18
19
boot_hook_add preinit_mount_root move_config