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"