diff options
-rw-r--r-- | stage2/02-net-tweaks/00-packages-sys-debian | 3 | ||||
-rwxr-xr-x | stage2/02-net-tweaks/01-run.sh | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/stage2/02-net-tweaks/00-packages-sys-debian b/stage2/02-net-tweaks/00-packages-sys-debian index 1cc3c36..147b9bd 100644 --- a/stage2/02-net-tweaks/00-packages-sys-debian +++ b/stage2/02-net-tweaks/00-packages-sys-debian @@ -1 +1,2 @@ -isc-dhcp-client +#isc-dhcp-client +dhcpcd5 diff --git a/stage2/02-net-tweaks/01-run.sh b/stage2/02-net-tweaks/01-run.sh index fae4ed0..f5bc54c 100755 --- a/stage2/02-net-tweaks/01-run.sh +++ b/stage2/02-net-tweaks/01-run.sh @@ -11,6 +11,8 @@ install -m 644 files/network/enN "${ROOTFS_DIR}/etc/network/interfaces.d/" install -v -d "${ROOTFS_DIR}/etc/wpa_supplicant" install -v -m 600 files/wpa_supplicant.conf "${ROOTFS_DIR}/etc/wpa_supplicant/" +echo "env force_hostname=YES" >> "${ROOTFS_DIR}/etc/dhcpcd.conf" + if [ -v WPA_COUNTRY ]; then echo "country=${WPA_COUNTRY}" >> "${ROOTFS_DIR}/etc/wpa_supplicant/wpa_supplicant.conf" fi |