summaryrefslogtreecommitdiff
path: root/data/live-build-config
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-06 20:29:03 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-06 20:29:13 +0100
commit04b14e52b77bb7483732d59843779edc4bb05309 (patch)
treef0695616f0d06e8fcbfb76ca273f22da694d7cbd /data/live-build-config
parent5bd60a745de223870e3d29981a72c760f51e5365 (diff)
downloadvyos-build-04b14e52b77bb7483732d59843779edc4bb05309.tar.gz
vyos-build-04b14e52b77bb7483732d59843779edc4bb05309.zip
hooks: drop isc-dhcp helper files from /etc/default
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