summaryrefslogtreecommitdiff
path: root/packages/prboom/files
diff options
context:
space:
mode:
Diffstat (limited to 'packages/prboom/files')
-rw-r--r--packages/prboom/files/prboom.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/prboom/files/prboom.sh b/packages/prboom/files/prboom.sh
index e69de29bb2..0bc43baa45 100644
--- a/packages/prboom/files/prboom.sh
+++ b/packages/prboom/files/prboom.sh
@@ -0,0 +1,16 @@
+#/bin/sh
+
+model="`cat /proc/cpuinfo | sed -n "/Hardware/s/.*\:\ \(.*\)/\1/p"`"
+
+if ! test -d "$HOME/.prboom"
+then
+ case $model in
+ *Collie) par="-height 240";;
+ *) par="";;
+ esac
+fi
+
+echo "Model: [$model]"
+echo "Launching prboom $par $*"
+
+prboom $par $*