Permalink
Browse files

more fixes to initial disable script...

  • Loading branch information...
1 parent 21714cd commit 28c39432acc70f6b4442ccee1a7059684464e6c5 @MrMEEE committed Sep 7, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 conf/ironhide-disablecard-on-powerup
@@ -1,8 +1,8 @@
-#!/bin/bash
+#!/bin/sh
CONFIGURATIONFILE=/etc/default/ironhide
-source $CONFIGURATIONFILE
+. $CONFIGURATIONFILE
ENABLECARD=/usr/local/bin/ironhide-enablecard
DISABLECARD=/usr/local/bin/ironhide-disablecard
@@ -11,8 +11,8 @@ DISABLECARD=/usr/local/bin/ironhide-disablecard
## 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 [[ `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 [ `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
$ENABLECARD
fi
$DISABLECARD

0 comments on commit 28c3943

Please sign in to comment.