[PC-BSD Commits] r702 - pcbsd/trunk/system-overlay/PCBSD/Scripts

svn at pcbsd.org svn at pcbsd.org
Tue Sep 11 14:49:16 PDT 2007


Author: kris
Date: 2007-09-11 14:49:16 -0700 (Tue, 11 Sep 2007)
New Revision: 702

Modified:
   pcbsd/trunk/system-overlay/PCBSD/Scripts/swapmonitor.sh
Log:

Fixed "ls" error from swap monitor script



Modified: pcbsd/trunk/system-overlay/PCBSD/Scripts/swapmonitor.sh
===================================================================
--- pcbsd/trunk/system-overlay/PCBSD/Scripts/swapmonitor.sh	2007-09-11 21:35:13 UTC (rev 701)
+++ pcbsd/trunk/system-overlay/PCBSD/Scripts/swapmonitor.sh	2007-09-11 21:49:16 UTC (rev 702)
@@ -34,7 +34,7 @@
 
   i="0"
   # Get list of swap devices and increment by 1
-  for j in `ls /swap/swap*.swap`
+  for j in `ls /swap/swap*.swap 2>/dev/null`
   do
     i="`expr ${i} + 1`" 
   done
@@ -53,7 +53,7 @@
 
   i="0"
   # Get list of swap devices and increment by 1
-  for j in `ls /swap/swap*.swap`
+  for j in `ls /swap/swap*.swap 2>/dev/null`
   do
     i="`expr ${i} + 1`" 
   done



More information about the Commits mailing list