summarylogtreecommitdiffstats
path: root/savage2.install
blob: 64b9ce1f917b6aa0f4f1409f8003c57c3e85b70e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
post_install() {
    # Update runpath
    cd /opt/savage2
    ./savage2_update.bin --update-runpath

    echo "==> To disable automatic updates (they do not work), run the game once, then open"
    echo "==>  ~/.savage2/game/startup.cfg and change the following line:"
    echo '==>       SetSave upd_checkForUpdates "true"'
    echo "==>  to:"
    echo '==>       SetSave upd_checkForUpdates "false"'
}

post_upgrade() {
    post_install $1
}

post_remove() {
    echo "==> To completely remove Savage 2, you will need to manually remove"
    echo "==>   /opt/savage2/ as root"
}

op=$1
shift
$op $*