mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
Fix usage of ampersands in wifi passphrases. They were being passed to connman as &
This commit is contained in:
parent
f943adea7b
commit
87846eca5f
@ -30,6 +30,6 @@ if [ -f "$OPENELEC_SETTINGS" ]; then
|
||||
|
||||
mkdir -p /var/config
|
||||
cat "$OPENELEC_SETTINGS" \
|
||||
| awk -F'[\"|'\'']' '{gsub(/\"\;/, "\\\"", $4); gsub(/\&apos\;/, "\047", $4); gsub(/\&\;/, "&", $4); gsub(/\<\;/, "<", $4); gsub(/\>\;/, ">", $4); print $2"=\""$4"\"";}' \
|
||||
| awk -F'[\"|'\'']' '{gsub(/\"\;/, "\\\"", $4); gsub(/\&apos\;/, "\047", $4); gsub(/\&\;/, "\\&", $4); gsub(/\<\;/, "<", $4); gsub(/\>\;/, ">", $4); print $2"=\""$4"\"";}' \
|
||||
| sed '/^=/d' > /var/config/settings.conf
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user