Skip to content

Commit 385aab4

Browse files
committed
pretty-name
1 parent 6191c9f commit 385aab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/whatserver.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ unset mem cpu ncpu
271271

272272
hostnamectl 2>/dev/null || lsb_release -a 2>/dev/null
273273
# || cat /etc/banner 2>/dev/null
274-
source /etc/os-release 2>/dev/null && echo "Pretty Name: ${PRETTY_NAME}"
274+
(source /etc/*release 2>/dev/null; [ -n "$PRETTY_NAME" ] && echo "Pretty Name: ${PRETTY_NAME}")
275275
echo "Date : $(date)"
276276
command -v uptime >/dev/null && {
277277
str=$(uptime | sed -e 's/^[ \t]*//')
@@ -409,7 +409,7 @@ else
409409
netstat -in 2>/dev/null
410410
}
411411
echo -e "${CB}>>>>> ARP table${CN}"
412-
{ command -v arp >/dev/null && arp -an 2>/dev/null || cat /proc/net/arp; } | COL
412+
{ arp -an | grep -iv 'incomplete' || cat /proc/net/arp || ip neigh show | grep -iv 'FAILED'; } 2>/dev/null | COL
413413
fi
414414

415415
command -v netstat >/dev/null && {

0 commit comments

Comments
 (0)