The /etc/dhcp3/* files are deprecated since 2012, time to pull the
plug :) Also see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673029
Now we only ship it as /etc/dhcp/dhclient-exit-hooks.d/grml-sethostname
grml-autoconfig: systemd-service-file-refers-to-unusual-wantedby-target lib/systemd/system/grml-autoconfig.service grml-boot.target
# we have no better way yet
grml-autoconfig: systemd-service-file-wraps-init-script lib/systemd/system/grml-autoconfig.service ExecStart
+# that's the way dhclient hook scripts are working
+grml-autoconfig: executable-not-elf-or-script etc/dhcp/dhclient-exit-hooks.d/grml-sethostname
+++ /dev/null
-../../dhcp3/dhclient-exit-hooks.d/grml-sethostname
\ No newline at end of file
--- /dev/null
+# only run the comamnd if we bound to a new ip
+case "$reason" in BOUND)
+if ! grep -q 'nodhcphostname' /proc/cmdline && [ -f /etc/grml_cd ] ; then
+
+ hostname=$(busybox nslookup "$new_ip_address" | awk '/Address 1: '$new_ip_address'/ {print $4}')
+ if [ -n "$hostname" ] ; then
+ grml-hostname "$hostname"
+ hostname -F /etc/hostname
+ fi
+fi
+;;
+esac
+++ /dev/null
-# only run the comamnd if we bound to a new ip
-case "$reason" in BOUND)
-if ! grep -q 'nodhcphostname' /proc/cmdline && [ -f /etc/grml_cd ] ; then
-
- hostname=$(busybox nslookup "$new_ip_address" | awk '/Address 1: '$new_ip_address'/ {print $4}')
- if [ -n "$hostname" ] ; then
- grml-hostname "$hostname"
- hostname -F /etc/hostname
- fi
-fi
-;;
-esac