From 04b14e52b77bb7483732d59843779edc4bb05309 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 6 Dec 2020 20:29:03 +0100 Subject: hooks: drop isc-dhcp helper files from /etc/default --- .../hooks/live/81-cleanup-etc-defaults.chroot | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 data/live-build-config/hooks/live/81-cleanup-etc-defaults.chroot diff --git a/data/live-build-config/hooks/live/81-cleanup-etc-defaults.chroot b/data/live-build-config/hooks/live/81-cleanup-etc-defaults.chroot new file mode 100755 index 00000000..c93deee1 --- /dev/null +++ b/data/live-build-config/hooks/live/81-cleanup-etc-defaults.chroot @@ -0,0 +1,11 @@ +#!/bin/sh + +# we use systemd to control ISC daemons from within vyos-1x +FILES="/etc/default/isc-dhcp-server /etc/default/isc-dhcp-relay" + +for FILE in ${FILES} +do + if [ -f ${FILE} ]; then + rm -f ${FILE} + fi +done -- cgit v1.2.3