From f064478212d683bac1d7235205b1ff6fce287a48 Mon Sep 17 00:00:00 2001 From: ugrnm Date: Thu, 23 Mar 2017 14:55:58 +0100 Subject: [PATCH] TGC hotspot --- .gitignore | 14 ++++++++++++++ etc/default/hostapd | 20 ++++++++++++++++++++ etc/dnsmasq.conf | 4 ++++ etc/hostapd/hostapd.conf | 6 ++++++ etc/network/interfaces | 10 ++++++++++ 5 files changed, 54 insertions(+) create mode 100644 etc/default/hostapd create mode 100644 etc/dnsmasq.conf create mode 100644 etc/hostapd/hostapd.conf create mode 100644 etc/network/interfaces diff --git a/.gitignore b/.gitignore index 4455c3d..ff61c78 100644 --- a/.gitignore +++ b/.gitignore @@ -12,12 +12,26 @@ !/etc/asound.state +!/etc/default/ +/etc/default/* +!/etc/default/hostapd + +!/etc/dnsmasq.conf + +!/etc/hostapd/ +/etc/hostapd/* +!/etc/hostapd/hostapd.conf + !/etc/hostname !/etc/modprobe.d/ /etc/modprobe.d/* !/etc/modprobe.d/alsa-base.conf +!/etc/network/ +/etc/network/* +!/etc/network/interfaces + !/etc/nginx/sites-available/ !/etc/rc.local diff --git a/etc/default/hostapd b/etc/default/hostapd new file mode 100644 index 0000000..5783c15 --- /dev/null +++ b/etc/default/hostapd @@ -0,0 +1,20 @@ +# Defaults for hostapd initscript +# +# See /usr/share/doc/hostapd/README.Debian for information about alternative +# methods of managing hostapd. +# +# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration +# file and hostapd will be started during system boot. An example configuration +# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz +# +DAEMON_CONF="/etc/hostapd/hostapd.conf" + +# Additional daemon options to be appended to hostapd command:- +# -d show more debug messages (-dd for even more) +# -K include key data in debug messages +# -t include timestamps in some debug messages +# +# Note that -B (daemon mode) and -P (pidfile) options are automatically +# configured by the init.d script and must not be added to DAEMON_OPTS. +# +#DAEMON_OPTS="" diff --git a/etc/dnsmasq.conf b/etc/dnsmasq.conf new file mode 100644 index 0000000..9f793e2 --- /dev/null +++ b/etc/dnsmasq.conf @@ -0,0 +1,4 @@ +interface=wlan0 +dhcp-range=10.10.10.11,10.10.10.254,12h +address=/#/10.10.10.10 +no-resolv diff --git a/etc/hostapd/hostapd.conf b/etc/hostapd/hostapd.conf new file mode 100644 index 0000000..99fe9bc --- /dev/null +++ b/etc/hostapd/hostapd.conf @@ -0,0 +1,6 @@ +interface=wlan0 +driver=nl80211 +ssid=TGC #3 +hw_mode=g +channel=6 + diff --git a/etc/network/interfaces b/etc/network/interfaces new file mode 100644 index 0000000..902fc82 --- /dev/null +++ b/etc/network/interfaces @@ -0,0 +1,10 @@ +auto lo +iface lo inet loopback + +auto eth0 +iface eth0 inet dhcp + +auto wlan0 +iface wlan0 inet static + address 10.10.10.10 + netmask 255.255.255.0