1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/games/sokoban/pkg-install
Mark Pulford e56553d416 Improved high score handling
Prompted by PR:	37338
2002-06-05 09:59:57 +00:00

10 lines
219 B
Bash

#!/bin/sh
FILE="/var/games/sokoban"
[ "$2" != "POST-INSTALL" -o -f "$FILE" ] && exit 0
echo "===> Creating initial high score file $FILE"
dd if=/dev/zero of=$FILE bs=1 count=2
chmod 664 $FILE
chown root.games $FILE