[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Raq4 LCD
- Subject: RE: [cobalt-users] Raq4 LCD
- From: "Jason Humphrey" <Jasonh@xxxxxxxxxxxxxx>
- Date: Tue Apr 13 14:00:00 2004
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
"Just copy and paste that line ... if it works, it will return a blank
line. I do not see why it wouldn't ... everything else is automatic."
Well it worked. But i was a bit hasty last time. The LCD when booting works
fine but when the raq has finished booting the lcd just says
"Setting Up Bandwidth"..... I'm guessing i got it wrong somehow.
this is the lcd-showip file now i'veedited it:
# Setup the path so we find stuff...
. /etc/rc.d/init.d/functions
if [ -e /tmp/.lcdlock ]; then
exit 1
else
# grep search /etc/resolv.conf >/dev/null
# SUCCESS="$?"
# if [ "$SUCCESS" = "1" ]; then
# DOMAIN=`grep domain /etc/resolv.conf | awk '{print $2}'`
# else
# DOMAIN=`grep search /etc/resolv.conf | awk '{print $2}'`
# fi
WORDS=`hostname`
# NAME=`basename $WORDS .$DOMAIN`
if [ "$WORDS" = "localhost" ]; then
WORDS=`gettext panel-utils "IP Address: "`
fi
/sbin/lcdstop
WORDS="Current Temperature is:"
IPADDR=`cat /proc/cpuinfo | grep temperature | cut -f2 -d:`
/sbin/lcd-write "$WORDS" `ifconfig eth0 | grep "inet addr" | cut -f 2 -d":"
| cut -f 1 -d" "`
exit 1
fi
Thanks Jason