[PC-BSD Commits] r2751 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Thu Sep 11 06:04:28 PDT 2008


Author: ayerenkow
Date: 2008-09-11 06:04:28 -0700 (Thu, 11 Sep 2008)
New Revision: 2751

Modified:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.LaptopSetup.sh
Log:
LaptopSetup detect which ACPI do your laptop use, and enable it

Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.LaptopSetup.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.LaptopSetup.sh	2008-09-11 01:29:02 UTC (rev 2750)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.LaptopSetup.sh	2008-09-11 13:04:28 UTC (rev 2751)
@@ -19,3 +19,21 @@
 done
 
 
+#and now we try to detect, which ACPI do your laptop use, and enable it...
+
+acpi_vendors="asus fujitsu ibm panasonic sony toshiba"
+
+for vendor in $acpi_vendors
+do
+    `kldload acpi_${vendor}`
+dmesgLine=`dmesg | grep "acpi_${vendor}0"`
+if test "${dmesgLine}" = ""; then
+       #echo "You have not a ${vendor} laptop..."
+else
+       #echo "You have a ${vendor} laptop!"
+echo "
+acpi_${vendor}_load="YES"
+" >> ${FSMNT}/boot/loader.conf
+fi 
+    `kldunload acpi_${vendor}`
+done



More information about the Commits mailing list