]> git.pld-linux.org Git - packages/console-tools.git/blobdiff - console.sh
- are we on tty?
[packages/console-tools.git] / console.sh
index 9dac1878f830e588395847a08b7fe4a90d2d8ca1..46a8e95a36cd3c0d52540a88fc4063c08aed234d 100644 (file)
@@ -1,6 +1,6 @@
-
-case $TERM in
- linux)
+if (tty -s); then
+ case $TERM in
 linux)
        if [ -f /etc/sysconfig/console ]; then
                . /etc/sysconfig/console
        
@@ -16,4 +16,5 @@ case $TERM in
                
        fi
        ;;
-esac
+ esac
+fi
This page took 0.188071 seconds and 4 git commands to generate.