mirror of
https://github.com/opnsense/src.git
synced 2026-04-20 21:59:20 -04:00
Avoid the ``ruptime: no hosts in /var/rwho.'' message by not calling
rwho iff /var/rwho is empty. Call `uptime' instead. This doesn't belong under `network' right away, but at least reports the same informaton about the local system. rwhod is not turned on by default (for good reason), and i've already seen too many of the above messages...
This commit is contained in:
parent
ac43c74df8
commit
3dc4ead535
1 changed files with 7 additions and 2 deletions
|
|
@ -1,10 +1,15 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $Id: 430.status-rwho,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
|
||||
# $Id: 430.status-rwho,v 1.1.1.1 1997/08/16 17:04:01 pst Exp $
|
||||
#
|
||||
|
||||
if [ -d /var/rwho -a -x /usr/bin/rwho ] ; then
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue