Permalink
Browse files

Fixes for submit system..

  • Loading branch information...
1 parent bd5e5a4 commit ff0614fc341aa3f7c6b99f6144f84d1a52202f10 @MrMEEE committed Aug 28, 2011
Showing with 14 additions and 11 deletions.
  1. +14 −11 files/ironhide-submitsystem
@@ -35,6 +35,7 @@ LSPCI=`which lspci`
MODPROBE=`which modprobe`
WHOAMI=`which whoami`
WGET=`which wget`
+IRONHIDEHOME=/usr/share/ironhide/
# INCLUDES
source easybashgui
@@ -89,18 +90,20 @@ DISTRO=$(cat /etc/issue | cut -f1 -d\\)
MANUFACTURER=`dmidecode --string system-manufacturer`
MODEL=`dmidecode --string system-product-name`
-if [ `cat /usr/local/bin/bumblebee-enablecard |grep \$\(acpi |wc -l` -gt 0 ]; then
- STARTUP=`xxd -p /usr/local/bin/bumblebee-enablecard | sed -e ':a;N;$!ba;s/\n//g'`
- SHUTDOWN=`xxd -p /usr/local/bin/bumblebee-disablecard | sed -e ':a;N;$!ba;s/\n//g'`
- STARTUPSTATUS=AVAILABLE
- SHUTDOWNSTATUS=AVAILABLE
-else
- STARTUP=UNAVAILABLE
- SHUTDOWN=UNAVAILABLE
- STARTUPSTATUS=UNAVAILABLE
- SHUTDOWNSTATUS=UNAVAILABLE
+STARTUP=UNAVAILABLE
+SHUTDOWN=UNAVAILABLE
+STARTUPSTATUS=UNAVAILABLE
+SHUTDOWNSTATUS=UNAVAILABLE
+
+if [ -f /usr/local/bin/bumblebee-enablecard ]; then
+ if [[ `diff /usr/local/bin/bumblebee-enablecard $IRONHIDEHOME/examples/ironhide-enablecard.template` != "" ]]; then
+ STARTUP=`xxd -p /usr/local/bin/bumblebee-enablecard | sed -e ':a;N;$!ba;s/\n//g'`
+ SHUTDOWN=`xxd -p /usr/local/bin/bumblebee-disablecard | sed -e ':a;N;$!ba;s/\n//g'`
+ STARTUPSTATUS=AVAILABLE
+ SHUTDOWNSTATUS=AVAILABLE
+ fi
fi
-clear
+
x="question --width $WIDTH --height $HEIGHT"
${x} "Distribution: $DISTRO\n"\

0 comments on commit ff0614f

Please sign in to comment.