fix TERM for colored output
authorBenedikt Boehm <hollow@gentoo.org>
Thu, 31 May 2007 17:58:46 +0000 (17:58 +0000)
committerBenedikt Boehm <hollow@gentoo.org>
Thu, 31 May 2007 17:58:46 +0000 (17:58 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2543 94cd875c-1c1d-0410-91d2-eb244daf1a30

distrib/gentoo/init-vserver.sh
scripts/vserver.functions

index ea52344..856af51 100644 (file)
@@ -25,7 +25,6 @@
 
 # Force TERM=linux for baselayout-2
 
-export TERM=linux
 RUNLEVEL=1 /sbin/rc sysinit || exit 1
 /sbin/rc boot || exit 1
 /sbin/rc ${1:-default}
index b51c507..ce50c3b 100644 (file)
@@ -303,8 +303,8 @@ function _generateInitOptions
        (xgentoo)
            test -n "$RUNLEVEL_START" || RUNLEVEL_START="default"
 
-           INITCMD_START=( /lib/rcscripts/sh/init-vserver.sh "$RUNLEVEL_START" )
-           INITCMD_STOP=( env -i RUNLEVEL=0 /sbin/rc shutdown )
+           INITCMD_START=( env TERM=$TERM /lib/rcscripts/sh/init-vserver.sh "$RUNLEVEL_START" )
+           INITCMD_STOP=( env -i TERM=$TERM RUNLEVEL=0 /sbin/rc shutdown )
            INITCMD_PREPARE=( $_FAKE_RUNLEVEL 3 /var/run/utmp )
            ;;