Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

introduced local configuration file: ~/.ironhiderc ...

  • Loading branch information...
commit 9d27c6b14a3d1df9d7593dcf444c8f8658a61420 1 parent 78fcc09
@MrMEEE authored
Showing with 23 additions and 2 deletions.
  1. +16 −1 files/ironhide-configuration
  2. +7 −1 files/optirun
View
17 files/ironhide-configuration
@@ -29,6 +29,7 @@
# Definitions
ARCH=`uname -m`
CONFIGURATIONFILE=/etc/default/ironhide
+LOCALECONFIGFILE=.ironhide
DATAFOLDER=/usr/share/ironhide/data/
LASTUPDATE=`stat -c %y $DATAFOLDER/allmachineinfo | cut -d ' ' -f1`
HEIGHT=500
@@ -49,6 +50,10 @@ GLXGEARS=`which glxgears`
# INCLUDES
source easybashgui
source $CONFIGURATIONFILE
+if [ -f ~/$LOCALECONFIGFILE ];then
+ source ~/$LOCALECONFIGFILE
+fi
+
# DEBUG? Comment Out...
exec 6>&2 ; exec 2> /dev/null
@@ -415,6 +420,11 @@ case "$choice" in
;;
esac
+if [ -f ~/$LOCALECONFIGFILE ];then
+ sed -i 's/VGL_COMPRESS.*/VGL_COMPRESS='$IMAGETRANSPORT'/' ~/$LOCALECONFIGFILE
+fi
+
+chown $SUDO_USER:$SUDO_USER ~/$LOCALECONFIGFILE
sed -i 's/VGL_COMPRESS.*/VGL_COMPRESS='$IMAGETRANSPORT'/' $CONFIGURATIONFILE
if [ -f /usr/local/bin/ironhide-enablecard ] ; then
@@ -581,5 +591,10 @@ ${x} "Ironhide is now configured.\n\n"\
"If you have any problems, please run ironhide-bugreport\n\n"\
"Have fun...."
-sudo sed -i "s/IRONHIDE_CONFIGURED=.*/IRONHIDE_CONFIGURED=1/g" $CONFIGURATIONFILE
+if [ -f ~/$LOCALECONFIGFILE ];then
+ sed -i "s/IRONHIDE_CONFIGURED=.*/IRONHIDE_CONFIGURED=1/g" ~/$LOCALECONFIGFILE
+fi
+
+sed -i "s/IRONHIDE_CONFIGURED=.*/IRONHIDE_CONFIGURED=1/g" $CONFIGURATIONFILE
+chown $SUDO_USER:$SUDO_USER ~/$LOCALECONFIGFILE
View
8 files/optirun
@@ -39,12 +39,18 @@
# -d <display_value> : -d must be followed by :0, :1 or :2 argument (See the VGL doc)
### END COMMENT
+LOCALECONFIGFILE=.ironhide
+
#DEFAULT VALUE
-source /etc/default/ironhide
VGL_DRIVER="/usr/lib/nvidia-current"
NVIDIABUSID=`grep BusID /etc/X11/xorg.conf.nvidia | sed -e "s/[ \t]*BusID[ \t]*\"\(.*\)\"/\1/g" |cut -d: -f2,3`
DELAY=1 # Time to let applications settle, before trying to shutdown the nvidia card..
+source /etc/default/ironhide
+if [ -f ~/$LOCALECONFIGFILE ];then
+ source ~/$LOCALECONFIGFILE
+fi
+
while :; do
case "$1" in
-f)
Please sign in to comment.
Something went wrong with that request. Please try again.