summaryrefslogtreecommitdiffstats
path: root/games/wolfmame/wolfmame
blob: 3a38899a52b142ec79c9a63f136b58e7f6f51923 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# Slackware wrapper for the wolfmame mame executable.
runme(){
    cd /opt/wolfmame
    ./mame "$@"
}

if [ $UID == 0 ]; then
    read -p "You are currently running as root...\
 Are you sure you want to proceed? (N/y): " resp
    case "$resp" in
	y|yes)
	    runme
	    ;;
	*)
	    echo Exiting
	    exit 0
	    ;;
    esac
else
    runme $@
fi