aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-07-28 19:30:03 +0200
committerFelix Fietkau <nbd@nbd.name>2016-07-29 10:18:09 +0200
commit119b4422f8e822bdb4f96e3df2b01b952718f672 (patch)
treef3faf63a79ee654ffe458214e07c17913e142e0f /target/linux/apm821xx
parent47cce1d5e45c1e6c5bb5659698408d4cea4e03a4 (diff)
downloadupstream-119b4422f8e822bdb4f96e3df2b01b952718f672.tar.gz
upstream-119b4422f8e822bdb4f96e3df2b01b952718f672.tar.bz2
upstream-119b4422f8e822bdb4f96e3df2b01b952718f672.zip
apm821xx: only attempt to mount /boot on MyBook Live
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/apm821xx')
-rw-r--r--target/linux/apm821xx/base-files/lib/preinit/79_move_config1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/apm821xx/base-files/lib/preinit/79_move_config b/target/linux/apm821xx/base-files/lib/preinit/79_move_config
index 7c651b8a13..f45619fdbd 100644
--- a/target/linux/apm821xx/base-files/lib/preinit/79_move_config
+++ b/target/linux/apm821xx/base-files/lib/preinit/79_move_config
@@ -3,6 +3,7 @@
BOOTPART=/dev/sda1
move_config() {
+ grep -q 'MyBook Live' /proc/cpuinfo || return
if [ -b $BOOTPART ]; then
mkdir -p /boot
mount -t ext4 -o rw,noatime $BOOTPART /boot