From 37fdcd5a407dfdee27a9bf201dac3cdff1e4ab88 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sun, 16 Sep 2018 20:04:38 +0200 Subject: package/base-files: hack for mt7623 SoC boot, drop other boards --- package/base-files/files/lib/preinit/80_mount_root | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'package/base-files/files/lib/preinit') diff --git a/package/base-files/files/lib/preinit/80_mount_root b/package/base-files/files/lib/preinit/80_mount_root index 0292d82..88128bd 100644 --- a/package/base-files/files/lib/preinit/80_mount_root +++ b/package/base-files/files/lib/preinit/80_mount_root @@ -3,7 +3,12 @@ # Copyright (C) 2010 Vertical Communications do_mount_root() { - mount_root + cat /proc/cpuinfo | grep 7623 + if [ "$?" == "0" ]; then + mount_root2 + else + mount_root + fi boot_run_hook preinit_mount_root [ -f /sysupgrade.tgz ] && { echo "- config restore -" -- cgit v1.1