aboutsummaryrefslogtreecommitdiffstats
path: root/games/linux-savage/pkg-install
blob: c73490f00ee4456893fdd9102ef62736e0119ac3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

[ "$2" != "POST-INSTALL" ] && exit 0

scripts_file=$PKG_PREFIX/lib/linux-savage/scripts.log
startup_file=$PKG_PREFIX/lib/linux-savage/game/startup.cfg

if ! [ -e $scripts_file ]; then
    touch $scripts_file
    chown root:wheel $scripts_file 2>/dev/null
    chmod 666 $scripts_file
fi

if ! [ -e $startup_file ]; then
    touch $startup_file
    chown root:wheel $startup_file 2>/dev/null
    chmod 666 $startup_file
fi