1997-08-16 17:04:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
1998-10-06 09:46:46 +00:00
|
|
|
# $Id: 430.status-rwho,v 1.1.1.1 1997/08/16 17:04:01 pst Exp $
|
1997-08-16 17:04:02 +00:00
|
|
|
#
|
|
|
|
|
1998-10-06 09:46:46 +00:00
|
|
|
if [ -d /var/rwho -a -x /usr/bin/rwho -a $(ls -l /var/rwho | wc -l) -ne 0 ]
|
|
|
|
then
|
1997-08-16 17:04:02 +00:00
|
|
|
echo ""
|
|
|
|
echo "Local network system status:"
|
|
|
|
ruptime
|
1998-10-06 09:46:46 +00:00
|
|
|
else
|
|
|
|
echo ""
|
|
|
|
echo "Local system status:"
|
|
|
|
uptime
|
1997-08-16 17:04:02 +00:00
|
|
|
fi
|