fff-hoods: Allow correct ula_prefix syntax in hoodfiles #90

Closed
fbl wants to merge 1 commits from fbl:syntaxfix2 into master
Owner

In earlier firmware versions the prefix had to be written
in an incorrect syntax (missing a trailing colon).
To make hoodfiles with this old incorrect syntax work with
newer firmware versions like this one, we have to fix the
incorrect syntax. Both the old, incorrect and the correct
syntax work with this fix, so in the far away future, the
correct syntax can be used in hoodfiles.

This is based on and thus requires: #77

In earlier firmware versions the prefix had to be written in an incorrect syntax (missing a trailing colon). To make hoodfiles with this old incorrect syntax work with newer firmware versions like this one, we have to fix the incorrect syntax. Both the old, incorrect and the correct syntax work with this fix, so in the far away future, the correct syntax can be used in hoodfiles. This is based on and thus requires: #77
fbl added this to the 20210211-beta milestone 2021-01-27 12:40:32 +01:00
Author
Owner

Changes:

  • Bump PKG_RELEASE
Changes: * Bump PKG_RELEASE
fbl force-pushed syntaxfix2 from 24ce581ca5 to 738cab0796 2021-01-27 17:52:03 +01:00 Compare
adschm reviewed 2021-01-27 20:05:56 +01:00
@ -198,0 +198,4 @@
# newer firmware versions like this one, we have to fix the
# incorrect syntax here. Both the old, incorrect and
# the correct syntax work with this fix.
prefix="$(echo "$prefix" | sed -e 's,\([^:]\):\/,\1::/,')"
Owner

Der forward-slash muss nicht escaped werden (es funktioniert offenbar mit und ohne backslash zum escapen). Da nicht notwendig würde ich aber die Variante ohne Backslash vorziehen:

prefix=$(echo "$prefix" | sed -e 's,\([^:]\):/,\1::/,')

Die äußeren Anführungszeichen können ebenfalls entfallen, die Funktion gibt es bei a=$() für umsonst.

Mit dem entfernten Backslash
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>

Der forward-slash muss nicht escaped werden (es funktioniert offenbar mit und ohne backslash zum escapen). Da nicht notwendig würde ich aber die Variante ohne Backslash vorziehen: `prefix=$(echo "$prefix" | sed -e 's,\([^:]\):/,\1::/,')` Die äußeren Anführungszeichen können ebenfalls entfallen, die Funktion gibt es bei a=$() für umsonst. Mit dem entfernten Backslash `Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>`
fbl force-pushed syntaxfix2 from 738cab0796 to 0a66c2be1c 2021-01-30 23:13:54 +01:00 Compare
Author
Owner

Changes:

  • Remove unnecessary escape before '/' (because ',' is used as a separator)
  • Rebase onto current master
Changes: * Remove unnecessary escape before '/' (because ',' is used as a separator) * Rebase onto current master
Owner

Wird gleich gemergt.

Wird gleich gemergt.
adschm closed this pull request 2021-01-31 14:08:50 +01:00
fbl deleted branch syntaxfix2 2021-01-31 14:55:37 +01:00

Pull request closed

Sign in to join this conversation.
No description provided.