summaryrefslogtreecommitdiff
path: root/init.sh
blob: 3f24399481767eacd2c6eefbd41f015813447a98 (plain)
1
2
3
4
5
6
7
#!/system/bin/sh

get_max_cpus () {
	ls -1d /sys/devices/system/cpu/cpu[0-9]* | tail -n+2 | wc -l
}

setprop ro.maxcpu $(get_max_cpus)