1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh /sbin/jffs2reset cat /proc/cmdline | grep block2mtd > /dev/null emmc=$? echo $emmc [ "$emmc" == "0" ] && { echo "emmc board, need reboot"; reboot -f; }