11 lines
448 B
Bash
Executable File
11 lines
448 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Setup an static ip to wlan0
|
|
cat files/dhcpcd.conf >> ${ROOTFS_DIR}/etc/dhcpcd.conf
|
|
# Setup dhcp server for rpi to serve clients
|
|
cat files/dnsmasq.conf >> /etc/dnsmasq.conf
|
|
# Setup access point in hostapd/hostapd.conf
|
|
cat files/hostapd.conf >> /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"
|