Sfoglia il codice sorgente

apm821xx: only attempt to mount /boot on MyBook Live

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 9 anni fa
parent
commit
119b4422f8

+ 1 - 0
target/linux/apm821xx/base-files/lib/preinit/79_move_config

@@ -3,6 +3,7 @@
 BOOTPART=/dev/sda1
 BOOTPART=/dev/sda1
 
 
 move_config() {
 move_config() {
+	grep -q 'MyBook Live' /proc/cpuinfo || return
 	if [ -b $BOOTPART ]; then
 	if [ -b $BOOTPART ]; then
 		mkdir -p /boot
 		mkdir -p /boot
 		mount -t ext4 -o rw,noatime $BOOTPART /boot
 		mount -t ext4 -o rw,noatime $BOOTPART /boot