Joined: 11 Aug 2003
|Posted: Fri Oct 29, 2004 4:37 am Post subject: letsPlay.sh; runlevel wrapper for gaming
|The Following script is used to switch runlevel before and after playing a game, in order to free up all the possible resources so your gaming experience is that much nicer.
First Make a Gaming runlevel.
rc-update add <the scripts needed to during gaming> gaming
ie. if you want syslog, cron and net running while gaming
|rc-update add syslog gaming
rc-update add cron gaming
rc-update add net gaming
Keep going until you have all the options needed.
Add this script to /usr/local/bin, or any other $PATH of your choice
# Begin USER Config
### END user Config
if [ -x /usr/bin/sudo ]; then
sudo /sbin/rc $GAMERUNLEVEL
sudo /sbin/rc $NORMALRUNLEVEL;
echo "You need to have sudo installed"
echo "emerge sudo :)"
chown root:games letsPlay.sh
chmod 554 letsPlay.sh
And that is it...
To use just execute
|letsPlay.sh <game Of choice> |
Questions? Comments? Concerns? -> QCC
Lares Moreau <firstname.lastname@example.org>
LRU: 400755 http://counter.li.org