mbox

[4/8] zone: Introduce id feature

Message ID 1499264393-13700-4-git-send-email-jonatan.schlag@ipfire.org
State Accepted
Commit 0959b0b96d0754cebfa3fa1cfe9f11538e87b333
Headers

Message

Jonatan Schlag July 6, 2017, 12:19 a.m. UTC
  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>
---
 src/functions/functions.zone | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)