initscripts fkt: Ignore comments in readhash

As '#Another Comment' is a valid key we test this change by checking if
the comments do not end up as keys in our array.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Jonatan Schlag
2024-06-16 18:02:39 +02:00
committed by Michael Tremer
parent 59e3c2a217
commit d289bc28be
3 changed files with 14 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ GREEN_DRIVER=r8175
RED_DEV=red0
RED_MACADDR=00:c0:08:8a:a0:56
RED_DRIVER=r8283
# Another Comment
BLUE_DEV='blue0 net0'
BLUE_MACADDR=bc:30:7d:58:6b:e3
BLUE_DRIVER=rt2800
@@ -15,3 +16,5 @@ RED_NETMASK=0.0.0.0
RED_TYPE=PPPOE
RED_NETADDRESS=0.0.0.0
# Comment for testing
# Comment for testing Comments with spaces before