summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-09-22 19:34:52 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-10-25 09:43:24 +0200
commit15e089644c43db9d9fa46c117889afb30fafe6a3 (patch)
treef398218052d82ca1b0a584e020a0402f12109f48 /network
parentnetwork: support matching based on wifi interfece type (diff)
downloadsystemd-15e089644c43db9d9fa46c117889afb30fafe6a3.tar.xz
systemd-15e089644c43db9d9fa46c117889afb30fafe6a3.zip
network: add default configurations for wireless interfaces
Diffstat (limited to 'network')
-rw-r--r--network/80-wifi-adhoc.network6
-rw-r--r--network/80-wifi-ap.network8
-rw-r--r--network/80-wifi-station.network6
3 files changed, 20 insertions, 0 deletions
diff --git a/network/80-wifi-adhoc.network b/network/80-wifi-adhoc.network
new file mode 100644
index 0000000000..a1320e1e0c
--- /dev/null
+++ b/network/80-wifi-adhoc.network
@@ -0,0 +1,6 @@
+[Match]
+Type=wifi
+WirelessType=ad-hoc
+
+[Network]
+LinkLocalAddressing=yes
diff --git a/network/80-wifi-ap.network b/network/80-wifi-ap.network
new file mode 100644
index 0000000000..8d62a7a407
--- /dev/null
+++ b/network/80-wifi-ap.network
@@ -0,0 +1,8 @@
+[Match]
+Type=wifi
+WirelessType=ap
+
+[Network]
+Address=0.0.0.0/24
+DHCPServer=yes
+IPMasquerade=yes
diff --git a/network/80-wifi-station.network b/network/80-wifi-station.network
new file mode 100644
index 0000000000..7d4555fd75
--- /dev/null
+++ b/network/80-wifi-station.network
@@ -0,0 +1,6 @@
+[Match]
+Type=wifi
+WirelessType=station
+
+[Network]
+DHCP=yes