mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
busybox: add support to parse '`' too, thanks to vpeter
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
932fa980e0
commit
0d86429a54
@ -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); gsub(/\$/, "\\\$", $4); print $2"=\""$4"\"";}' \
|
||||
| awk -F'["'\'']' '{gsub(/\"\;/, "\\\"", $4); gsub(/\&apos\;/, "\047", $4); gsub(/\&\;/, "\\&", $4); gsub(/\<\;/, "<", $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