summaryrefslogtreecommitdiff
path: root/games/wmquake/wmquake.sh
diff options
context:
space:
mode:
Diffstat (limited to 'games/wmquake/wmquake.sh')
-rw-r--r--games/wmquake/wmquake.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/games/wmquake/wmquake.sh b/games/wmquake/wmquake.sh
new file mode 100644
index 0000000000..888c0ea461
--- /dev/null
+++ b/games/wmquake/wmquake.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+mkdir -p ~/.wmquake
+if ! cd ~/.wmquake; then
+ echo "Can't create ~/.wmquake" 2>&1
+ exit 1
+fi
+if [ ! -e id1 ]; then
+ mkdir -p id1
+ ln -s /usr/share/games/quake/id1/* id1/
+fi
+exec /usr/libexec/wmquake/wmquake "$@"