summaryrefslogtreecommitdiff
path: root/FIXME
blob: 54d350b1764e9e2bd938972fa6e7ff70dae7098b (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
14chroot.sh

        # Add splashy and conditionally a theme
        if [ ! -z "${LIVE_SPLASHY}" ]
        then
                chroots "apt-get install --yes splashy splashy-themes"

                if [ ! -z "${LIVE_SPLASHY_THEME}" ]
                then
                        # not already installed ? Then its a new theme to install!
                        if [ ! -d "${LIVE_CHROOT}"/etc/splashy/themes/"${LIVE_SPLASHY_THEME}" ]
                        then
                                if [ -f "${LIVE_SPLASHY_THEME}".tar.gz ]
                                then
                                        cp "${LIVE_SPLASHY_THEME}".tar.gz "${LIVE_CHROOT}"/tmp/"${LIVE_SPLASHY_THEME}".tar.gz # this permits simlink to theme
                                        chroots "splashy_config -i /tmp/${LIVE_SPLASHY_THEME}.tar.gz"
                                        rm "${LIVE_CHROOT}"/tmp/"${LIVE_SPLASHY_THEME}".tar.gz
                                        chroots "splashy_config -s ${LIVE_SPLASHY_THEME}"
                                else
                                        echo "Specify the local splashy theme without extension, it also must be in the cwd"
                                fi
                        else
                                chroots "splashy_config -s ${LIVE_SPLASHY_THEME}"
                        fi
                fi
        fi