diff options
Diffstat (limited to 'package/base-files/files/sbin')
-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; +} |