tag all pnd/wiz binaries
[ginge.git] / dist / ginge.gpe
CommitLineData
4d045184 1#!/bin/sh
2
6ca08393 3unset LD_PRELOAD
4
4d045184 5/sbin/rmmod warm 2> /dev/null
6ca08393 6/sbin/insmod ./tools/warm_2.6.24.ko
4d045184 7
7000b522 8# we might write something to /tmp, no need to write to flash
9if ! grep -q '/tmp' /proc/mounts; then
10 mount -t tmpfs none /tmp
11fi
12
4d045184 13# theoretically GP2X apps can make use of more RAM, because
14# Wiz has 2.6 kernel (larger memory requirements) and larger
15# reserved areas, so we mount some swap here just in case.
16mkswap swapfile
17swapon swapfile
18
6ca08393 19./gp2xmenu --view-game
4d045184 20
21swapoff swapfile
7000b522 22umount /tmp
6ca08393 23/sbin/rmmod warm 2> /dev/null
adb79840 24
25cd /usr/gp2x/
26exec ./gp2xmenu