Add contest WiFi connection

This commit is contained in:
Jan Schär 2024-05-13 22:59:31 +02:00
parent a60638d63b
commit aab293ac19
7 changed files with 33 additions and 2 deletions

View file

@ -25,3 +25,6 @@ $DISABLE_DESKTOP /usr/share/applications/gnome-sharing-panel.desktop
# We want to load kexec manually, and execution of kexec is already done by systemd.
systemctl disable kexec-load.service
systemctl disable kexec.service
# Restrict access to the config which contains the WiFi password.
chmod og= /etc/NetworkManager/system-connections/contest.nmconnection

View file

@ -0,0 +1,20 @@
[connection]
id=contest
uuid=b4b09615-f7b9-4777-baa0-7812d58a01dd
type=wifi
[wifi]
mode=infrastructure
ssid=contest
[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk=@wifi_password@
[ipv4]
method=auto
[ipv6]
addr-gen-mode=default
method=auto

View file

@ -7,7 +7,8 @@
polkit.addRule(function (action, subject) {
if (
action.id.indexOf("org.freedesktop.ModemManager1.") === 0 ||
action.id.indexOf("org.freedesktop.NetworkManager.") === 0 ||
(action.id.indexOf("org.freedesktop.NetworkManager.") === 0 &&
action.id !== "org.freedesktop.NetworkManager.wifi.scan") ||
action.id === "org.freedesktop.login1.hibernate" ||
action.id === "org.freedesktop.packagekit.system-network-proxy-configure" ||
action.id.indexOf("org.freedesktop.udisks2.") === 0