aboutsummaryrefslogtreecommitdiff
path: root/etc.BSD/rc
diff options
context:
space:
mode:
Diffstat (limited to 'etc.BSD/rc')
-rw-r--r--etc.BSD/rc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc.BSD/rc b/etc.BSD/rc
index 13a192a1..f9f76b87 100644
--- a/etc.BSD/rc
+++ b/etc.BSD/rc
@@ -5,10 +5,13 @@
# Ensure we are called by init
[ "$PPID" = "1" ] || exit 0
+# If $TERM is not set then assume default of cons25
+# This gives us a nice colour boot :)
+[ -z "$TERM" ] && export TERM="cons25"
+
# BSD's init works somewhat differently to sysvinit.
# This block should 'translate' from the way init calls it to the way it would
# be called by sysvinit on linux.
-
RUNLEVEL="1" /sbin/rc sysinit || exit 1
RUNLEVEL="1" /sbin/rc boot || exit 1
PREVLEVEL="1" /sbin/rc default