From 47c708093ca94ad1d387126ab538177b7f0d79cf Mon Sep 17 00:00:00 2001 From: German Ferrero Date: Thu, 14 Nov 2019 13:23:59 -0300 Subject: [PATCH] Replace instead of append network configs. Now the resulting configuration is cleaner. --- stage3/00-enable-access-point/01-run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stage3/00-enable-access-point/01-run.sh b/stage3/00-enable-access-point/01-run.sh index 38721fe..1b1f556 100755 --- a/stage3/00-enable-access-point/01-run.sh +++ b/stage3/00-enable-access-point/01-run.sh @@ -1,10 +1,10 @@ #!/bin/bash -e # Setup an static ip to wlan0 -cat files/dhcpcd.conf >> ${ROOTFS_DIR}/etc/dhcpcd.conf +install -v files/dhcpcd.conf ${ROOTFS_DIR}/etc/dhcpcd.conf # Setup dhcp server for rpi to serve clients -cat files/dnsmasq.conf >> ${ROOTFS_DIR}/etc/dnsmasq.conf +install -v files/dnsmasq.conf ${ROOTFS_DIR}/etc/dnsmasq.conf # Setup access point in hostapd/hostapd.conf -cat files/hostapd.conf >> ${ROOTFS_DIR}/etc/hostapd/hostapd.conf +install -v files/hostapd.conf ${ROOTFS_DIR}/etc/hostapd/hostapd.conf # Point default/hostapd conf to hostapd/hostapd.conf sed -i "s@#DAEMON_CONF=\"\"@DAEMON_CONF=\"/etc/hostapd/hostapd.conf\"@" "${ROOTFS_DIR}/etc/default/hostapd"