summarylogtreecommitdiffstats
path: root/wolf.install
blob: 050936e9a9b14d4f850cd1bca535c90dd7f286b0 (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
25
26
27
28
29
30
31
32
33
34
35

post_install() {
    echo ">>> Copy the following files off a Windows installation or CD-ROM to the"
    echo ">>> /opt/wolf/main/ directory in order to play:"
    echo ">>>    pak0.pk3"
    echo ">>>    sp_pak1.pk3"
    echo ">>>    mp_pak0.pk3"
    echo ">>>"
    echo ">>> Then run the following commands: "
    echo ">>>    chown root:root /opt/wolf/main/{pak0.pk3,sp_pak1.pk3,mp_pak0.pk3}"
    echo ">>>    chmod 0444 /opt/wolf/main/{pak0.pk3,sp_pak1.pk3,mp_pak0.pk3}"
    echo ">>>"
    echo ">>> For more information about these files read "
    echo ">>>    /opt/wolf/INSTALL (line 15)"
    echo ">>>"
}

post_upgrade() {
    post_install $1
}

pre_remove() {
    /bin/true
}

post_remove() {
    echo ">>> To complete the uninstallation remove the RtCW data directory:"
    echo ">>>    rm -r /opt/wolf/"
    echo ">>>"
}
op=$1
shift

$op $*