#!/bin/sh # 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 /sbin/lcd-write "$WORDS" `ifconfig eth0 | grep "inet addr" | cut -f 2 -d":" | cut -f 1 -d" "` exit 1 fi