[PC-BSD Commits] r17230 - pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/xstartup

svn at pcbsd.org svn at pcbsd.org
Fri Jun 8 13:20:37 PDT 2012


Author: kris
Date: 2012-06-08 20:20:36 +0000 (Fri, 08 Jun 2012)
New Revision: 17230

Modified:
   pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/xstartup/net-trays.sh
Log:

Update how we detect if wifi is on host, before showing tray



Modified: pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/xstartup/net-trays.sh
===================================================================
--- pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/xstartup/net-trays.sh	2012-06-08 19:57:51 UTC (rev 17229)
+++ pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/xstartup/net-trays.sh	2012-06-08 20:20:36 UTC (rev 17230)
@@ -1,17 +1,9 @@
 #!/bin/sh
 # Script to check if there are any wireless networks to display on the tray
 
-# Wait 10 seconds, since user may be fast booting
-sleep 10
-
 if [ "`id -u`" = "0" ] ; then return ; fi
 
-ifconfig wlan0 >/dev/null 2>/dev/null
-if [ $? -eq 0 ] ; then
-	(sleep 10 ; sudo pc-nettray wlan0 ) &
-fi
+(sleep 30 ; ifconfig wlan0 && sudo pc-nettray wlan0 ) &
 
-ifconfig wlan1 >/dev/null 2>/dev/null
-if [ $? -eq 0 ] ; then
-	( sleep 10 ; sudo pc-nettray wlan1 ) &
-fi
+(sleep 35 ; ifconfig wlan1 && sudo pc-nettray wlan1 ) &
+



More information about the Commits mailing list