mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-06-05 22:19:21 +02:00
MycroftOS: Migrating to new wifi-connect system.
This commit is contained in:
@ -1,2 +0,0 @@
|
|||||||
interface=ap0
|
|
||||||
address=/#/172.16.127.1
|
|
@ -1,28 +0,0 @@
|
|||||||
|
|
||||||
worker_processes 1;
|
|
||||||
|
|
||||||
events {
|
|
||||||
worker_connections 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
http {
|
|
||||||
include mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
sendfile on;
|
|
||||||
keepalive_timeout 65;
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 172.16.127.1:80;
|
|
||||||
server_name MycroftOS;
|
|
||||||
root /opt/mycroft/wifisetup/templates;
|
|
||||||
|
|
||||||
# For iOS
|
|
||||||
if ($http_user_agent ~* (CaptiveNetworkSupport) ) {
|
|
||||||
return 302 http://172.16.127.1:88/hotspot.html;
|
|
||||||
}
|
|
||||||
# For others
|
|
||||||
location / {
|
|
||||||
return 302 http://172.16.127.1:88/;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
[Match]
|
|
||||||
Name=ap0
|
|
||||||
[Network]
|
|
||||||
Address=172.16.127.1/28
|
|
||||||
DHCPServer=yes
|
|
||||||
[DHCPServer]
|
|
||||||
DNS=172.16.127.1
|
|
@ -1,6 +0,0 @@
|
|||||||
[Match]
|
|
||||||
Name=wlan0
|
|
||||||
[Network]
|
|
||||||
DHCP=ipv4
|
|
||||||
[DHCP]
|
|
||||||
RouteMetric=20
|
|
@ -1,18 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Usage: iptables-flush [6]
|
|
||||||
#
|
|
||||||
|
|
||||||
iptables=ip$1tables
|
|
||||||
if ! type -p "$iptables"; then
|
|
||||||
echo "error: invalid argument"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
while read -r table; do
|
|
||||||
tables+=("/var/lib/$iptables/empty-$table.rules")
|
|
||||||
done <"/proc/net/ip$1_tables_names"
|
|
||||||
|
|
||||||
if (( ${#tables[*]} )); then
|
|
||||||
cat "${tables[@]}" | "$iptables-restore"
|
|
||||||
fi
|
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Reference in New Issue
Block a user