summaryrefslogtreecommitdiff
path: root/package/base-files/files/sbin/firstboot
blob: 04976a35a1c96260a1bc7b1ab95fc11fed42066d (plain)
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;
}