summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-13 17:56:37 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-13 17:56:54 +0200
commite43c3a840b84b316c51989284bd084b4ae1b60b6 (patch)
tree9d49218975121a3361dc6c4a220e4585d8eab9af /data/live-build-config/hooks
parent54c79a637636bb6cedc2e3fe8cf7e58b6a29b5cd (diff)
downloadvyos-build-e43c3a840b84b316c51989284bd084b4ae1b60b6.tar.gz
vyos-build-e43c3a840b84b316c51989284bd084b4ae1b60b6.zip
ddclient: T2185: clean leftover files from base package
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