/[baselayout]/trunk/etc.BSD/rc
Gentoo

Contents of /trunk/etc.BSD/rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2673 - (show annotations) (download)
Wed May 2 10:43:43 2007 UTC (7 years, 4 months ago) by uberlord
File size: 891 byte(s)
Stop blindly assuming that a blank TERM is cons25. For cons25 terms we drop one column so we don't get an extra newline.
1 #!/bin/sh
2 # Copyright 2006-2007 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 # Ensure we are called by init
6 [ "$PPID" = "1" ] || exit 0
7
8 # If $TERM is not set then assume default of cons25
9 # This gives us a nice colour boot :)
10 [ -z "$TERM" ] && export TERM="cons25"
11
12 # BSD's init works somewhat differently to sysvinit.
13 # This block should 'translate' from the way init calls it to the way it would
14 # be called by sysvinit on linux.
15 RUNLEVEL="1" /sbin/rc sysinit || exit 1
16 RUNLEVEL="1" /sbin/rc boot || exit 1
17 PREVLEVEL="1" /sbin/rc default
18
19 # If we return non zero after starting rc then 2 things may happen
20 # 1) We get the message "init: can't get /dev/console for controlling terminal"
21 # every few seconds
22 # 2) We get no error and console freezes.
23 # This is probably a bug somewhere in rc, but until that is fixed we have to
24 # return 0.
25 exit 0

  ViewVC Help
Powered by ViewVC 1.1.20