Revision 1108,
1002 bytes
checked in by daisuke, 14 years ago
(diff) |
import initscripts-8.90.6 from internal cvs repository
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | # This script will be executed *after* all the other init scripts. |
---|
4 | # You can put your own initialization stuff in here if you don't |
---|
5 | # want to do the full Sys V style init stuff. |
---|
6 | |
---|
7 | |
---|
8 | #### Vine stuff: still generate /etc/issue* here |
---|
9 | |
---|
10 | if [ -f /etc/vine-release ]; then |
---|
11 | R=$(cat /etc/vine-release) |
---|
12 | |
---|
13 | arch=$(uname -m) |
---|
14 | a="a" |
---|
15 | case "_$arch" in |
---|
16 | _a*) a="an";; |
---|
17 | _i*) a="an";; |
---|
18 | esac |
---|
19 | |
---|
20 | NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat` |
---|
21 | if [ "$NUMPROC" -gt "1" ]; then |
---|
22 | SMP="$NUMPROC-processor " |
---|
23 | if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then |
---|
24 | a="an" |
---|
25 | else |
---|
26 | a="a" |
---|
27 | fi |
---|
28 | fi |
---|
29 | |
---|
30 | # This will overwrite /etc/issue at every boot. So, make any changes you |
---|
31 | # want to make to /etc/issue here or you will lose them when you reboot. |
---|
32 | echo "" > /etc/issue |
---|
33 | echo "$R" >> /etc/issue |
---|
34 | echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue |
---|
35 | |
---|
36 | cp -f /etc/issue /etc/issue.net |
---|
37 | echo >> /etc/issue |
---|
38 | fi |
---|
39 | |
---|
40 | #### Vine stuff ends here |
---|
41 | |
---|
42 | |
---|
43 | touch /var/lock/subsys/local |
---|
Note: See
TracBrowser
for help on using the repository browser.