2016-07-20 13:44:54 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
BOOTPART=/dev/sda1
|
|
|
|
|
|
|
|
move_config() {
|
2017-07-09 11:00:36 +00:00
|
|
|
. /lib/functions.sh
|
2019-09-04 14:57:39 +00:00
|
|
|
. /lib/upgrade/common.sh
|
2017-07-09 11:00:36 +00:00
|
|
|
|
2017-12-17 14:00:01 +00:00
|
|
|
case "$(board_name)" in
|
2018-09-21 22:38:38 +00:00
|
|
|
wd,mybooklive)
|
2017-12-17 14:00:01 +00:00
|
|
|
if [ -b $BOOTPART ]; then
|
|
|
|
mkdir -p /boot
|
|
|
|
mount -t ext4 -o rw,noatime $BOOTPART /boot
|
2019-09-04 14:57:39 +00:00
|
|
|
[ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
|
2017-12-17 14:00:01 +00:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
2016-07-20 13:44:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
boot_hook_add preinit_mount_root move_config
|