projects
/
librecmc
/
librecmc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
apm821xx: only attempt to mount /boot on MyBook Live
[librecmc/librecmc.git]
/
target
/
linux
/
apm821xx
/
base-files
/
lib
/
preinit
/
79_move_config
1
#!/bin/sh
2
3
BOOTPART=/dev/sda1
4
5
move_config() {
6
grep -q 'MyBook Live' /proc/cpuinfo || return
7
if [ -b $BOOTPART ]; then
8
mkdir -p /boot
9
mount -t ext4 -o rw,noatime $BOOTPART /boot
10
[ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
11
fi
12
}
13
14
boot_hook_add preinit_mount_root move_config