Debian Codegraph @

src/usr/lib/debian-installer-startup.d/S04countcpus-linux-alpha

raw
1 if dmesg | grep -q ^Processors:; then
2 dmesg | grep ^Processors: | cut -d ' ' -f 2 >/var/numcpus
3 else
4 echo 1 >/var/numcpus
5 fi