16 lines
235 B
Bash
Executable File
16 lines
235 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
if [ -d /var/rwho -a -x /usr/bin/rwho -a $(ls -l /var/rwho | wc -l) -ne 0 ]
|
|
then
|
|
echo ""
|
|
echo "Local network system status:"
|
|
ruptime
|
|
else
|
|
echo ""
|
|
echo "Local system status:"
|
|
uptime
|
|
fi
|