[PC-BSD Commits] r18085 - pcbsd/current/src-sh/warden/scripts/backend

svn at pcbsd.org svn at pcbsd.org
Wed Aug 1 17:42:19 PDT 2012


Author: kris
Date: 2012-08-02 00:42:19 +0000 (Thu, 02 Aug 2012)
New Revision: 18085

Modified:
   pcbsd/current/src-sh/warden/scripts/backend/details.sh
Log:

Only display used port a single time



Modified: pcbsd/current/src-sh/warden/scripts/backend/details.sh
===================================================================
--- pcbsd/current/src-sh/warden/scripts/backend/details.sh	2012-08-02 00:37:45 UTC (rev 18084)
+++ pcbsd/current/src-sh/warden/scripts/backend/details.sh	2012-08-02 00:42:19 UTC (rev 18085)
@@ -39,7 +39,7 @@
 else
    diskUsage=`du -c -x -m ${JDIR}/${IP} 2>/dev/null | grep total | tail -n 1 | awk '{print $1}'`
 fi
-sockstat | grep "${IP}" | grep '*.*' | awk '{print $6}' | sed "s|${IP}:||g" | sort -g >/tmp/.socklist.$$
+sockstat | grep "${IP}" | grep '*.*' | awk '{print $6}' | sed "s|${IP}:||g" | sort -g | uniq >/tmp/.socklist.$$
 while read line
 do
   if [ -z "$portList" ] ; then



More information about the Commits mailing list