diff --git a/README.md b/README.md index 517637a..1812a0b 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,19 @@ Make sure you are not runing `wpa_supplicant` on your host machine or docker con root 22619 0.0 0.4 6616 3700 ? Ss 22:04 0:00 /sbin/wpa_supplicant -s -B -P /run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -C /run/wpa_supplicant ``` +## Environment Variables + +| Name | Required | Description | Default Value | +|:---------------:|:--------:|:------------------------------:|:-------------:| +| INTERFACE | true | The wireless interface | | +| CHANNEL | false | WiFi Channel to use | 11 | +| SSID | false | WiFi Name | raspberry | +| AP\_ADDR | false | Access Point IP Address | 192.168.254.1 | +| SUBNET | false | WiFi network subnet | 192.168.254.0 | +| WPA\_PASSPHRASE | false | WiFi Password | passw0rd | +| OUTGOINGS | false | Interfaces to external traffic | | +| HW\_MODE | false | Hardware protocol | g | + # Todo Improve README.md diff --git a/wlanstart.sh b/wlanstart.sh index 0b490c2..0f12992 100755 --- a/wlanstart.sh +++ b/wlanstart.sh @@ -16,6 +16,8 @@ fi # Default values true ${SUBNET:=192.168.254.0} true ${AP_ADDR:=192.168.254.1} +true ${PRI_DNS:=8.8.8.8} +true ${SEC_DNS:=8.8.4.4} true ${SSID:=raspberry} true ${CHANNEL:=11} true ${WPA_PASSPHRASE:=passw0rd} @@ -102,7 +104,7 @@ fi echo "Configuring DHCP server .." cat > "/etc/dhcpd.conf" <