Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:svenstaro/lglive

  • Loading branch information...
commit 4e6bd00f86aa80eb5bcc45b1c1d3a887c54f934b 2 parents 9055134 + 68a5615
@svenstaro authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 games/megaglest/init.sh
View
5 games/megaglest/init.sh
@@ -0,0 +1,5 @@
+install -D -m644 /opt/games/megaglest/addons/glest.ini /home/gamer/.config/megaglest/glest.ini
+xres=$(xrandr -q | grep \* | sed -e "s/^[ \t]*//" -e "s/\([0-9]*x[0-9]*\).*/\1/" | cut -d'x' -f1)
+yres=$(xrandr -q | grep \* | sed -e "s/^[ \t]*//" -e "s/\([0-9]*x[0-9]*\).*/\1/" | cut -d'x' -f2)
+sed -i -e "s/XXXX/$xres/" -e "s/YYYY/$yres/" /home/gamer/.config/megaglest/glest.ini
+chown -R gamer:users /home/gamer/.config/megaglest/
Please sign in to comment.
Something went wrong with that request. Please try again.