summaryrefslogtreecommitdiff
path: root/recipes/prboom/files/prboom.sh
blob: 636b17879d7a2bf19cce6b7473f95d4b875aa9f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#/bin/sh

model="`cat /proc/cpuinfo | sed -n "/Hardware/s/.*\:\ \(.*\)/\1/p"`"

case $model in
*Collie)	par="-height 240";;
*Poodle)	par="-height 240";;
*00)		par="-height 240";;
*)		par="";;
esac

test -e /usr/share/games/doom/prboom.cfg && par="$par -config /usr/share/games/doom/prboom.cfg"

echo "Model: [$model]"
echo "Launching prboom $par $*"

prboom $par $*