| | 1 | #!/bin/sh |
| | 2 | |
| | 3 | unset LD_PRELOAD |
| | 4 | |
| | 5 | /sbin/rmmod warm 2> /dev/null |
| | 6 | /sbin/insmod ./tools/warm_2.6.24.ko |
| | 7 | |
| | 8 | # we might write something to /tmp, no need to write to flash |
| | 9 | # FIXME: doesn't seem to work, tmpfs broken in Wiz kernel? |
| | 10 | #if ! grep -q '/tmp' /proc/mounts; then |
| | 11 | # mount -t tmpfs none /tmp |
| | 12 | #fi |
| | 13 | |
| | 14 | # theoretically GP2X apps can make use of more RAM, because |
| | 15 | # Wiz has 2.6 kernel (larger memory requirements) and larger |
| | 16 | # reserved areas, so we mount some swap here just in case. |
| | 17 | |
| | 18 | # FIXME: doesn't work too, causes more problems than resolves |
| | 19 | #mkswap swapfile |
| | 20 | #swapon swapfile |
| | 21 | |
| | 22 | ./gp2xmenu --view-game |
| | 23 | |
| | 24 | #swapoff swapfile |
| | 25 | #umount /tmp |
| | 26 | /sbin/rmmod warm 2> /dev/null |
| | 27 | |
| | 28 | cd /usr/gp2x/ |
| | 29 | exec ./gp2xmenu |