From 700bdb4f1dce01eeacaf07937a6386563dd84ddb Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 2 May 2007 10:43:43 +0000 Subject: Stop blindly assuming that a blank TERM is cons25. For cons25 terms we drop one column so we don't get an extra newline. --- etc.BSD/rc.shutdown | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'etc.BSD/rc.shutdown') diff --git a/etc.BSD/rc.shutdown b/etc.BSD/rc.shutdown index 0fe22836..81dc20fe 100644 --- a/etc.BSD/rc.shutdown +++ b/etc.BSD/rc.shutdown @@ -7,8 +7,11 @@ # Try and use stuff in /lib over anywhere else so we can shutdown # local mounts correctly. -LD_LIBRARY_PATH="/lib${LD_LIBRARY_PATH:+:}${LDLIBRARY_PATH}" -export LD_LIBRARY_PATH +export LD_LIBRARY_PATH="/lib${LD_LIBRARY_PATH:+:}${LDLIBRARY_PATH}" + +# If $TERM is not set then assume default of cons25 +# This gives us a nice colour shutdown :) +[ -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 @@ -16,6 +19,6 @@ export LD_LIBRARY_PATH case "$1" in reboot) export RUNLEVEL=6;; shutdown) export RUNLEVEL=0;; - single) export RUNLEVEL=S;; + single) export RUNLEVEL=S;; esac exec /sbin/rc "$1" -- cgit v1.2.3