On Fri, Feb 09, 2001 at 03:11:09PM -0600, Dave Sherohman wrote:
> 
> For the console (text mode), put this into ~/.bash_profile:
> 
> case `basename \`tty\`` in
>   tty[1-9]) setleds +num;;
> esac

try this instead:

if tty > /dev/null 2>&1 ; then
    case $(basename `tty`) in
        tty[1-9])
            setleds +num
            ;;
    esac
fi

otherwise when you login to [xgwk]dm errors about invalid tty are
thrown into various logfiles. 

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpefXuiJvCPL.pgp
Description: PGP signature

Reply via email to