From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonatan Schlag To: network@lists.ipfire.org Subject: [PATCH] config: remove old hashes Date: Tue, 04 Jul 2017 17:58:02 +0200 Message-ID: <1499183882-24548-1-git-send-email-jonatan.schlag@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1634669488832181412==" List-Id: --===============1634669488832181412== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable With the new id feature the old hashes are not necessary anymore. Signed-off-by: Jonatan Schlag --- src/hooks/configs/ipv4-static | 3 +-- src/hooks/configs/ipv6-static | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hooks/configs/ipv4-static b/src/hooks/configs/ipv4-static index cb00252..c395200 100644 --- a/src/hooks/configs/ipv4-static +++ b/src/hooks/configs/ipv4-static @@ -106,8 +106,7 @@ hook_new() { warning "You did not configure a gateway for a non-local zone" fi =20 - # XXX maybe we can add some hashing to identify a configuration again - zone_config_settings_write "${zone}" "${HOOK}.$(uuid)" + zone_config_settings_write "${zone}" "${HOOK}" =20 exit ${EXIT_OK} } diff --git a/src/hooks/configs/ipv6-static b/src/hooks/configs/ipv6-static index 2a5e8e2..f43ef7e 100644 --- a/src/hooks/configs/ipv6-static +++ b/src/hooks/configs/ipv6-static @@ -59,7 +59,7 @@ hook_new() { GATEWAY=3D$(ipv6_format "${GATEWAY}") fi =20 - zone_config_settings_write "${zone}" "${HOOK}.$(ipv6_hash ${ADDRESS}).${PRE= FIX}" + zone_config_settings_write "${zone}" "${HOOK}" =20 exit ${EXIT_OK} } --=20 2.6.3 --===============1634669488832181412==--