dhcpcd: add noip4ll parameter to config

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2019-08-09 12:31:46 +02:00
parent 559e94bafb
commit 793a273ab5
2 changed files with 8 additions and 0 deletions

View File

@@ -21,3 +21,6 @@ require dhcp_server_identifier
# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname
# disable ipv4ll (IPv4 local link/apipa) ip's
noipv4ll

View File

@@ -91,6 +91,11 @@ rm -vf \
# Extract files
extract_files
# update dhcpcd.conf
sed -i -e "s|.*ipv4ll.*||g" /var/ipfire/dhcpc/dhcpcd.conf
echo "# disable ipv4ll (IPv4 local link/apipa) ip's" >> /var/ipfire/dhcpc/dhcpcd.conf
echo "noipv4ll" >> /var/ipfire/dhcpc/dhcpcd.conf
# update linker config
ldconfig