summarylogtreecommitdiffstats
path: root/virtualt
blob: 3497168a381b9c884ed7e33a91589bcf17df2425 (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
#!/bin/sh

if [ ! -d ~/.virtualt ]; then
    FIRST_RUN=true
    mkdir ~/.virtualt
fi

cd ~/.virtualt

if [ $FIRST_RUN ]; then
    ln -s /usr/lib/virtualt/ROMs
    ln -s /usr/share/doc/virtualt/manual doc
    cp /usr/share/virtualt/version .
fi

read USER_VERSION < version
read SYSTEM_VERSION < /usr/share/virtualt/version
if [ ${USER_VERSION} != ${SYSTEM_VERSION} ]; then
    echo "The version of VirtualT in your home directory does not match that of the system." >&2
    echo "If the included ROMs have been updated, your model support directories may be out of date." >&2
    cp /usr/share/virtualt/version .
fi

cd ~/.virtualt
/usr/lib/virtualt/virtualt $@