summaryrefslogtreecommitdiff
path: root/data/live-build-config
diff options
context:
space:
mode:
Diffstat (limited to 'data/live-build-config')
-rwxr-xr-xdata/live-build-config/hooks/live/81-cleanup-etc-defaults.chroot11
1 files changed, 11 insertions, 0 deletions
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