summaryrefslogtreecommitdiff
path: root/package/base-files/files/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/sbin')
-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;
+}