[PC-BSD Commits] r17351 - pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Wed Jun 20 10:38:22 PDT 2012


Author: kris
Date: 2012-06-20 17:38:19 +0000 (Wed, 20 Jun 2012)
New Revision: 17351

Modified:
   pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/scripts/sys-init.sh
Log:

Hide error from ls if no users on system



Modified: pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/scripts/sys-init.sh
===================================================================
--- pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/scripts/sys-init.sh	2012-06-20 17:22:19 UTC (rev 17350)
+++ pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/scripts/sys-init.sh	2012-06-20 17:38:19 UTC (rev 17351)
@@ -3,7 +3,7 @@
 
 # Init the flash plugin for all users
 cd /home
-for i in `ls -d *`
+for i in `ls -d * 2>/dev/null`
 do
   su ${i} -c "flashpluginctl off"
   su ${i} -c "flashpluginctl on"



More information about the Commits mailing list