summaryrefslogtreecommitdiff
path: root/package/base-files/files/lib/preinit/80_mount_root
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 20:04:38 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 20:07:19 +0200
commit37fdcd5a407dfdee27a9bf201dac3cdff1e4ab88 (patch)
tree5f9583b75516dbfb22a38f321b78be98116b7140 /package/base-files/files/lib/preinit/80_mount_root
parentc0ce88c586a467665b35d93c2f6962cac8e8dc27 (diff)
downloadmtk-20170518-37fdcd5a407dfdee27a9bf201dac3cdff1e4ab88.zip
mtk-20170518-37fdcd5a407dfdee27a9bf201dac3cdff1e4ab88.tar.gz
mtk-20170518-37fdcd5a407dfdee27a9bf201dac3cdff1e4ab88.tar.bz2
package/base-files: hack for mt7623 SoC boot, drop other boards
Diffstat (limited to 'package/base-files/files/lib/preinit/80_mount_root')
-rw-r--r--package/base-files/files/lib/preinit/80_mount_root7
1 files changed, 6 insertions, 1 deletions
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 -"