tools-hardened/desktop gnome3-run.sh: Adds check for background dir existance

This commit is contained in:
Devan Franchini 2015-03-19 16:34:07 -04:00
parent 6b03011ea2
commit f2b3eb3d34

View file

@ -54,6 +54,11 @@ setup_confs() {
sed -i 's/^\(sessiondir.*\)/# \1/' "${ROOTFS}"/etc/slim.conf
sed -i '/# sessiondir.*/ a\sessiondir /etc/X11/Sessions' "${ROOTFS}"/etc/slim.conf
if [ ! -d "${ROOTFS}/usr/share/backgrounds" ];
then
mkdir -p "${ROOTFS}"/usr/share/backgrounds
fi
wget -O "${ROOTFS}"/usr/share/backgrounds/background.jpg "${IMAGE}"
sed -i '/^SYNC/d' "${ROOTFS}"/etc/portage/make.conf