tag all pnd/wiz binaries
[ginge.git] / dist / ginge.gpe
index 27521e5..5e06e1d 100755 (executable)
@@ -1,7 +1,14 @@
 #!/bin/sh
 
+unset LD_PRELOAD
+
 /sbin/rmmod warm 2> /dev/null
-/sbin/insmod ./warm_2.6.24.ko
+/sbin/insmod ./tools/warm_2.6.24.ko
+
+# we might write something to /tmp, no need to write to flash
+if ! grep -q '/tmp' /proc/mounts; then
+       mount -t tmpfs none /tmp
+fi
 
 # theoretically GP2X apps can make use of more RAM, because
 # Wiz has 2.6 kernel (larger memory requirements) and larger
@@ -9,6 +16,11 @@
 mkswap swapfile
 swapon swapfile
 
-./gp2xmenu
+./gp2xmenu --view-game
 
 swapoff swapfile
+umount /tmp
+/sbin/rmmod warm 2> /dev/null
+
+cd /usr/gp2x/
+exec ./gp2xmenu