projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1796e9f5f4633d8230112980026714d4c8a941ad
[openwrt/openwrt.git]
/
target
/
linux
/
apm821xx
/
base-files
/
lib
/
preinit
/
79_move_config
1
BOOTPART=/dev/sda1
2
3
move_config() {
4
. /lib/functions.sh
5
. /lib/upgrade/common.sh
6
7
case "$(board_name)" in
8
wd,mybooklive)
9
if [ -b $BOOTPART ]; then
10
mkdir -p /boot
11
mount -t ext4 -o rw,noatime $BOOTPART /boot
12
[ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
13
fi
14
;;
15
*)
16
;;
17
esac
18
}
19
20
boot_hook_add preinit_mount_root move_config