[5/5] config hook: generate new id inside hook_new

Message ID 1502533349-13935-5-git-send-email-jonatan.schlag@ipfire.org
State New
Headers show

Message

Jonatan Schlag Aug. 12, 2017, 10:22 a.m.
The hook_parse_cmdline function takes as first argument the id so
we need to generate the id inside hook_new

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 src/hooks/configs/dhcp         | 9 +++++++--
 src/hooks/configs/ipv4-static  | 9 +++++++--
 src/hooks/configs/ipv6-auto    | 9 +++++++--
 src/hooks/configs/ipv6-static  | 9 +++++++--
 src/hooks/configs/pppoe-server | 9 +++++++--
 5 files changed, 35 insertions(+), 10 deletions(-)