Debian Codegraph @

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

raw
1 numcpus=$(grep "^0x00$" /sys/bus/parisc/devices/*/hw_type 2>/dev/null | wc -l)
2 if [ $numcpus -gt 1 ]; then
3 echo $numcpus >/var/numcpus
4 else
5 echo 1 >/var/numcpus
6 fi
7 unset numcpus