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'