rememberthe8bit
Member
- Joined
- Aug 27, 2006
- Messages
- 231
- Age
- 35
- Location
- Western New York, USA
- Website
- rememberthe8bit.blogspot.com
I was trying to create an SD card detecting script, so that I could always run cpu/lcd tweaker in the NAND to fix my screen, but also be able to run gmenu2x when the SD card is inserted on bootup.
This is what I have now. (it's pretty hack-ey
)
CODE
# Run GMenu2X if it's on the SD card
if -e /mnt/sd/Apps/gmenu2x/yay.txt; \
then \
cd /mnt/sd/Apps/gmenu2x; \
exec ./gmenu2x; \
# Run default interface
cd /usr/gp2x; \
exec ./gp2xmenu --disable-autorun; \
else \
# Run default interface
cd /usr/gp2x; \
exec ./gp2xmenu --disable-autorun; \
fi; \
"yay.txt" is just a file I made, because I didn't know if it would detect the gmenu2x executable.
This is what I have now. (it's pretty hack-ey
CODE
# Run GMenu2X if it's on the SD card
if -e /mnt/sd/Apps/gmenu2x/yay.txt; \
then \
cd /mnt/sd/Apps/gmenu2x; \
exec ./gmenu2x; \
# Run default interface
cd /usr/gp2x; \
exec ./gp2xmenu --disable-autorun; \
else \
# Run default interface
cd /usr/gp2x; \
exec ./gp2xmenu --disable-autorun; \
fi; \
"yay.txt" is just a file I made, because I didn't know if it would detect the gmenu2x executable.