Skip to content

Commit

Permalink
more fixes to initial disable script...
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMEEE committed Sep 7, 2011
1 parent 21714cd commit 28c3943
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conf/ironhide-disablecard-on-powerup
@@ -1,8 +1,8 @@
#!/bin/bash #!/bin/sh


CONFIGURATIONFILE=/etc/default/ironhide CONFIGURATIONFILE=/etc/default/ironhide


source $CONFIGURATIONFILE . $CONFIGURATIONFILE


ENABLECARD=/usr/local/bin/ironhide-enablecard ENABLECARD=/usr/local/bin/ironhide-enablecard
DISABLECARD=/usr/local/bin/ironhide-disablecard DISABLECARD=/usr/local/bin/ironhide-disablecard
Expand All @@ -11,8 +11,8 @@ DISABLECARD=/usr/local/bin/ironhide-disablecard
## This script disables nVidia card if no optirun is running. ## This script disables nVidia card if no optirun is running.
#### ####
if ! pidof -x /usr/bin/optirun /usr/bin/optirun32 /usr/bin/optirun64 >/dev/null; then if ! pidof -x /usr/bin/optirun /usr/bin/optirun32 /usr/bin/optirun64 >/dev/null; then
if [[ `lspci -v -s \`grep BusID /etc/X11/xorg.conf.nvidia | sed -e "s/[ \t]*BusID[ \t]*\"\(.*\)\"/\1/g" |cut -d: -f2,3\` | grep "\!" |wc -l` = 0 ]]; then if [ `lspci -v -s \`grep BusID /etc/X11/xorg.conf.nvidia | sed -e "s/[ \t]*BusID[ \t]*\"\(.*\)\"/\1/g" |cut -d: -f2,3\` | grep "\!" |wc -l` = 0 ]; then
if [[ $IRONHIDE_ACPI_MODE = "1" ]]; then if [ $IRONHIDE_ACPI_MODE = "1" ]; then
$ENABLECARD $ENABLECARD
fi fi
$DISABLECARD $DISABLECARD
Expand Down

0 comments on commit 28c3943

Please sign in to comment.