summaryrefslogtreecommitdiffstats
path: root/core/modules/lightdm-greeter-bwlp/data/opt/openslx/scripts/lightdm-patch_logo
blob: fb339105478b4f89950104c4dcb5cc0c2b5ffb22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/ash

text="$1"
color=
if [ -n "$2" ]; then
	color=";s:#[0-9a-f][0-9a-f][0-9a-f][0-9a-f]*:${2}:gI"
fi

text="${text//</}"
text="${text//>/}"
text="${text//:/}"
text="${text//'"'/}"

# Add text to bwLehrpool logo
sed -i "s:<!--SUBTITLE-->:${text}:${color}" '/opt/openslx/lightdm/bwlp-banner.svg'