summaryrefslogtreecommitdiff
path: root/package/base-files/files/sbin/firstboot
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/sbin/firstboot
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/sbin/firstboot')
-rwxr-xr-xpackage/base-files/files/sbin/firstboot8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/base-files/files/sbin/firstboot b/package/base-files/files/sbin/firstboot
index 081febb..04976a3 100755
--- a/package/base-files/files/sbin/firstboot
+++ b/package/base-files/files/sbin/firstboot
@@ -1,3 +1,11 @@
#!/bin/sh
/sbin/jffs2reset
+
+cat /proc/cmdline | grep block2mtd > /dev/null
+emmc=$?
+echo $emmc
+[ "$emmc" == "0" ] && {
+ echo "emmc board, need reboot";
+ reboot -f;
+}