diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-09-16 20:04:38 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-09-16 20:07:19 +0200 |
commit | 37fdcd5a407dfdee27a9bf201dac3cdff1e4ab88 (patch) | |
tree | 5f9583b75516dbfb22a38f321b78be98116b7140 /package/base-files/files/sbin/firstboot | |
parent | c0ce88c586a467665b35d93c2f6962cac8e8dc27 (diff) | |
download | mtk-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-x | package/base-files/files/sbin/firstboot | 8 |
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; +} |