summaryrefslogtreecommitdiff
path: root/target/linux/apm821xx/base-files
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/base-files
parent47cce1d5e45c1e6c5bb5659698408d4cea4e03a4 (diff)
downloadmtk-20170518-119b4422f8e822bdb4f96e3df2b01b952718f672.zip
mtk-20170518-119b4422f8e822bdb4f96e3df2b01b952718f672.tar.gz
mtk-20170518-119b4422f8e822bdb4f96e3df2b01b952718f672.tar.bz2
apm821xx: only attempt to mount /boot on MyBook Live
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/apm821xx/base-files')
-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 7c651b8..f45619f 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