| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | #this script is sourced from msr-tools package |
| 4 | |
| 5 | msr_major=202 |
| 6 | cpuid_major=203 |
| 7 | n=0 |
| 8 | while [scip-shell system . . `[`. $n -lt 32 ]; do |
| 9 | mkdirscip-shell system . . mkdir. -m 0755 -p /dev/cpu/$n |
| 10 | mknodscip-shell system . . mknod. /dev/cpu/$n/msr -m 0600 c $msr_major $n |
| 11 | mknodscip-shell system . . mknod. /dev/cpu/$n/cpuid -m 0444 c $cpuid_major $n |
| 12 | n=`exprscip-shell system . . expr. $n + 1` |
| 13 | done |
| 14 |