]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: add default configurations for wireless interfaces 13623/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 22 Sep 2019 17:34:52 +0000 (02:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Oct 2019 07:43:24 +0000 (16:43 +0900)
network/80-wifi-adhoc.network [new file with mode: 0644]
network/80-wifi-ap.network [new file with mode: 0644]
network/80-wifi-station.network [new file with mode: 0644]

diff --git a/network/80-wifi-adhoc.network b/network/80-wifi-adhoc.network
new file mode 100644 (file)
index 0000000..a1320e1
--- /dev/null
@@ -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 (file)
index 0000000..8d62a7a
--- /dev/null
@@ -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 (file)
index 0000000..7d4555f
--- /dev/null
@@ -0,0 +1,6 @@
+[Match]
+Type=wifi
+WirelessType=station
+
+[Network]
+DHCP=yes