diff options
author | markp <markp@FreeBSD.org> | 2002-06-05 17:59:57 +0800 |
---|---|---|
committer | markp <markp@FreeBSD.org> | 2002-06-05 17:59:57 +0800 |
commit | 3f311db9c6a7e671c94918a6ce4de762de2328fe (patch) | |
tree | 3ec60c03a864f71d0338d1f494e517218ef1ca97 /games/sokoban/pkg-install | |
parent | 17acb0e134eaedd730ff5b855f1103825cc53833 (diff) | |
download | freebsd-ports-gnome-3f311db9c6a7e671c94918a6ce4de762de2328fe.tar.gz freebsd-ports-gnome-3f311db9c6a7e671c94918a6ce4de762de2328fe.tar.zst freebsd-ports-gnome-3f311db9c6a7e671c94918a6ce4de762de2328fe.zip |
Improved high score handling
Prompted by PR: 37338
Diffstat (limited to 'games/sokoban/pkg-install')
-rw-r--r-- | games/sokoban/pkg-install | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/games/sokoban/pkg-install b/games/sokoban/pkg-install new file mode 100644 index 000000000000..9587d65b8106 --- /dev/null +++ b/games/sokoban/pkg-install @@ -0,0 +1,9 @@ +#!/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 |