[PC-BSD Commits] r19954 - pcbsd/branches/9.1/overlays/desktop-overlay/usr/local/share/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Thu Oct 25 13:20:54 PDT 2012


Author: kris
Date: 2012-10-25 20:20:54 +0000 (Thu, 25 Oct 2012)
New Revision: 19954

Modified:
   pcbsd/branches/9.1/overlays/desktop-overlay/usr/local/share/pcbsd/scripts/sound-dev-changed.sh
Log:

MFC a fix with sound-detect during bootup



Modified: pcbsd/branches/9.1/overlays/desktop-overlay/usr/local/share/pcbsd/scripts/sound-dev-changed.sh
===================================================================
--- pcbsd/branches/9.1/overlays/desktop-overlay/usr/local/share/pcbsd/scripts/sound-dev-changed.sh	2012-10-25 20:20:23 UTC (rev 19953)
+++ pcbsd/branches/9.1/overlays/desktop-overlay/usr/local/share/pcbsd/scripts/sound-dev-changed.sh	2012-10-25 20:20:54 UTC (rev 19954)
@@ -62,6 +62,12 @@
 
 set_new_dev()
 {
+   # Dont keep changing the device at bootup, wait until after the system loads before enabling this
+   ps -axoargs | grep -q "^/usr/libexec/getty "
+   if [ $? -eq 0 ] ; then
+      return
+   fi
+
    # Get the last pcm device so we can make it the default
    newDev=`cat /dev/sndstat | grep play | egrep -o 'pcm[0-9]+' | tail -n 1`
    dNum=`echo $newDev | sed 's|pcm||g'`



More information about the Commits mailing list