From: Nicolas Boisselier Date: Sun, 5 Feb 2017 02:33:24 +0000 (+0000) Subject: etc/profile.d/sys.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=013cbb7e55105c704b1b90f7ac7292c469a10c1d;p=nb.git etc/profile.d/sys.sh --- diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index f5f9149d..14960365 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -26,6 +26,7 @@ sys_activity() { [ -d /dev/shm/ ] && tmp=/dev/shm/ tmp="$tmp/$FUNCNAME.$$" netstat -autpn > $tmp.netstat + w|head -1|sed 's/^ *//' case "$OSTYPE" in linux*)