Permalink
Browse files

Add a check to the sys-init for i915kms, and set it to load on boot i…

…f necessary
  • Loading branch information...
1 parent af47272 commit e674d0b8831c196dda3f1e0de35bee7e60a1bd16 @kmoore134 kmoore134 committed Aug 5, 2013
@@ -72,4 +72,5 @@ fi
# If we are running an intel chipset, load the newer KMS driver automatically
if [ "$loadIntelKMS" = "yes" ] ; then
kldload i915kms
+ touch /tmp/loadIntelKMS
fi
@@ -53,12 +53,15 @@ if [ "$1" = "desktop" ] ;then
pbreg set /PC-BSD/SysType PCBSD
touch /etc/defaults/pcbsd
- # Enable showing the PC-BSD 4th screen
- echo "pcbsd_boot=\"YES\"" >> /boot/loader.conf
-
# Init the desktop
/usr/local/bin/pc-extractoverlay desktop --sysinit
+ # Check if we need to load i915kms
+ kldstat | grep -q "i915kms"
+ if [ $? -eq 0 ] ; then
+ echo "i915kms_load=\"YES\"" >> /boot/loader.conf
+ fi
+
# Need to save a language?
if [ -n "$2" ] ; then
echo "$2" > /etc/pcbsd-lang

0 comments on commit e674d0b

Please sign in to comment.