initscripts fkt: ignore invalid keys in readhash

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:40 +02:00
committed by Michael Tremer
parent d289bc28be
commit 02254f5543
5 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
CONFIG_TYPE=3
GREEN_DEV=green0
GREEN_MACADDR=00:c0:08:8a:a0:47
GREEN_DRIVER=r8175
-RED_DEV=red0
RE??D_MACADDR=00:c0:08:8a:a0:56
RED&&_DRIVER=r8283
# Another Comment
0BLUE_DEV='blue0 net0'
BLUE_MACADDR=bc:30:7d:58:6b:e3
BLUE_DRIVER=rt2800
RED_DHCP_HOSTNAME=ipfire
RED_DHCP_FORCE_MTU=
RED_ADDRESS=0.0.0.0
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

View File

@@ -0,0 +1,4 @@
Invalid key '-RED_DEV'
Invalid key 'RE??D_MACADDR'
Invalid key 'RED&&_DRIVER'
Invalid key '0BLUE_DEV'