summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'data/live-build-config/hooks')
-rwxr-xr-xdata/live-build-config/hooks/live/20-rm_ddclient_hook.chroot8
1 files changed, 7 insertions, 1 deletions
diff --git a/data/live-build-config/hooks/live/20-rm_ddclient_hook.chroot b/data/live-build-config/hooks/live/20-rm_ddclient_hook.chroot
index 173b4e5c..350843c7 100755
--- a/data/live-build-config/hooks/live/20-rm_ddclient_hook.chroot
+++ b/data/live-build-config/hooks/live/20-rm_ddclient_hook.chroot
@@ -1,3 +1,9 @@
#!/bin/sh
-rm -f /etc/dhcp/dhclient-exit-hooks.d/ddclient
+if [ -f /etc/dhcp/dhclient-exit-hooks.d/ddclient ]; then
+ rm -f /etc/dhcp/dhclient-exit-hooks.d/ddclient
+fi
+
+if [ -f /etc/ddclient.conf ]; then
+ rm -f /etc/ddclient.conf
+fi