1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh # # $FreeBSD$ SCOREDIR="/var/games/pachi" SCOREFILE="/var/games/pachi/scores.dat" [ "$2" != "POST-INSTALL" -o -f "$SCOREFILE" ] && exit 0 echo "Creating hiscore file..." mkdir -p "$SCOREDIR" # Empty scorefile seem to contain 170 zero bytes truncate -s 170 "$SCOREFILE" chgrp -R games "$SCOREDIR" chmod g+w "$SCOREFILE"