diff options
author | Simon Rettberg | 2019-04-09 14:44:30 +0200 |
---|---|---|
committer | root | 2019-04-09 14:44:30 +0200 |
commit | 085b2758f2391cd10ee62e9769b27607c8c5785d (patch) | |
tree | 2d3ac7eb83c5101074a7478356ed368a480e5447 /core | |
parent | [hardware-stats] Remove UUID fallback; require /etc/system-uuid (diff) | |
download | mltk-085b2758f2391cd10ee62e9769b27607c8c5785d.tar.gz mltk-085b2758f2391cd10ee62e9769b27607c8c5785d.tar.xz mltk-085b2758f2391cd10ee62e9769b27607c8c5785d.zip |
[lightdm-greeter-bwlp] Fix roomplan downloader
Diffstat (limited to 'core')
-rwxr-xr-x | core/modules/lightdm-greeter-bwlp/data/opt/openslx/scripts/systemd-download_roomplan | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/core/modules/lightdm-greeter-bwlp/data/opt/openslx/scripts/systemd-download_roomplan b/core/modules/lightdm-greeter-bwlp/data/opt/openslx/scripts/systemd-download_roomplan index fc968082..d4dff085 100755 --- a/core/modules/lightdm-greeter-bwlp/data/opt/openslx/scripts/systemd-download_roomplan +++ b/core/modules/lightdm-greeter-bwlp/data/opt/openslx/scripts/systemd-download_roomplan @@ -5,5 +5,17 @@ UUID=$( cat /etc/system-uuid ) [ -z "$UUID" ] && exit 0 -mkdir -p /etc/branding.d -exec curl -m 3 -o /etc/branding.d/50-roomplan.svg "${SLX_PVS_CONFIG_URL}&show=svg&machineuuid=${UUID}&rotate=-1" +mkdir -p /opt/openslx/lightdm +DEST="/opt/openslx/lightdm/roomplan.svg" +# Download +curl -m 3 -o "${DEST}" "${SLX_PVS_CONFIG_URL}&show=svg&machineuuid=${UUID}&rotate=-1" +[ -s "$DEST" ] || exit 0 # Do nothing if it doesn't exist +# But create overriding config file if it does +mkdir -p "/etc/lightdm/qt-lightdm-greeter.conf.d" +# Make it 10- so it can be easily overridden +cat > "/etc/lightdm/qt-lightdm-greeter.conf.d/10-roomplan.conf" <<EOF +[General] +loginform-mini-icon=${DEST} +EOF +exit 0 + |