#!/bin/bash -e # on_chroot << EOF # bash -c "$(curl -s https://dride.io/code/install.sh)" # EOF on_chroot << EOC #apt-get remove --purge hostapd -yqq #apt-get update -yqq #apt-get upgrade -yqq #apt-get install hostapd dnsmasq -yqq cat > /etc/dnsmasq.conf < /etc/hostapd/hostapd.conf <> /etc/network/interfaces <> /etc/dhcpcd.conf sudo systemctl disable dhcpcd.service sudo systemctl enable hostapd sudo systemctl enable dnsmasq sudo service hostapd start sudo service dnsmasq start echo "All done! Please reboot" EOC # fix Stretch dhcpcd5 to not ignore in /etc/network/interfaces install -m 644 files/usr_lib_dhcpcd ${ROOTFS_DIR}/usr/lib/dhcpcd5/dhcpcd