2016-04-11 06:29:41 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2018-03-02 20:08:24 +00:00
|
|
|
install -v -d "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d"
|
|
|
|
install -v -m 644 files/wait.conf "${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/"
|
2016-04-11 06:29:41 +00:00
|
|
|
|
2018-03-02 20:08:24 +00:00
|
|
|
install -v -d "${ROOTFS_DIR}/etc/wpa_supplicant"
|
|
|
|
install -v -m 600 files/wpa_supplicant.conf "${ROOTFS_DIR}/etc/wpa_supplicant/"
|
2016-04-11 06:29:41 +00:00
|
|
|
|
2018-11-16 08:48:44 +00:00
|
|
|
on_chroot << EOF
|
|
|
|
rm -f /etc/resolv.conf
|
|
|
|
touch /tmp/dhcpcd.resolv.conf
|
|
|
|
ln -s /tmp/dhcpcd.resolve.conf /etc/resolv.conf
|
2018-11-30 10:40:39 +00:00
|
|
|
sed -i -e 's/\/run\//\/var\/run\//' /etc/systemd/system/dhcpcd5.service
|
2018-11-16 08:48:44 +00:00
|
|
|
mv /etc/dhcpcd.conf /boot/
|
|
|
|
chown root:root /boot/dhcpcd.conf
|
|
|
|
ln -s /boot/dhcpcd.conf /etc/dhcpcd.conf
|
|
|
|
EOF
|
|
|
|
|