]> git.ipfire.org Git - people/stevee/network.git/commit
zone: Introduce id feature
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 5 Jul 2017 14:19:49 +0000 (16:19 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Jul 2017 15:10:53 +0000 (17:10 +0200)
commit0959b0b96d0754cebfa3fa1cfe9f11538e87b333
tree1c869826e2041e1cf7ab196d93fba096e67a52eb
parentcdf4266d83d752c42002eac8e764b6e30861ee48
zone: Introduce id feature

When we write a config for the frist time a unique id is generated and appended to the filename.
So it is possible to identify a config clearly.

The variable config is rename to hook because this function takes now
the name of the hook and the id. The name of the config is no more suitable.
If no id is passed we generate one.
This should only happen when we write the file for the first time.

Fixes: #11405
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.zone