tools-hardened/desktop gnome3-run.sh: Adds check for background dir existance
This commit is contained in:
parent
6b03011ea2
commit
f2b3eb3d34
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue