-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for network manager and wpa-supplicant in network module #…
- Loading branch information
Showing
6 changed files
with
82 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/modules/network/filesystem/network-manager/boot/wifi.nmconnection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Uncomment everything below this line and set your ssid and password | ||
# [connection] | ||
# id=wifi | ||
# uuid=593819b8-135a-4a3e-9611-c36cdeadbeef | ||
# type=wifi | ||
# interface-name=wlan0 | ||
|
||
# [wifi] | ||
# mode=infrastructure | ||
# ssid=set your wifi ssid here | ||
|
||
# [wifi-security] | ||
# auth-alg=open | ||
# key-mgmt=wpa-psk | ||
# psk=set your password here | ||
|
||
# [ipv4] | ||
# method=auto | ||
|
||
# [ipv6] | ||
# addr-gen-mode=default | ||
# method=auto | ||
|
||
# [proxy] |
21 changes: 21 additions & 0 deletions
21
...k/filesystem/network-manager/root/etc/systemd/system/copy-network-manager-config@.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#### Enable network manager configuration from boot | ||
#### | ||
#### Written by Guy Sheffer <guysoft at gmail dot com> | ||
#### Copyright 2024 | ||
#### https://github.com/guysoft/CustomPiOS | ||
#### | ||
#### This File is distributed under GPLv3 | ||
|
||
[Unit] | ||
Description=persistent setup on %I | ||
Wants=network-pre.target | ||
Before=network-pre.target | ||
BindsTo=sys-subsystem-net-devices-%i.device | ||
After=sys-subsystem-net-devices-%i.device | ||
|
||
[Service] | ||
ExecStart=/opt/custompios/copy-network-manager-config %I | ||
Type=oneshot | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
8 changes: 8 additions & 0 deletions
8
...odules/network/filesystem/network-manager/root/opt/custompios/copy-network-manager-config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
( | ||
echo "# DO NOT EDIT THIS FILE" | ||
echo "# Edit /boot/firmware/wifi.nmconnection and it will be copied here" | ||
cat /boot/firmware/wifi.nmconnection | ||
) > /etc/NetworkManager/system-connections/wifi.nmconnection | ||
chmod 600 /etc/NetworkManager/system-connections/wifi.nmconnection | ||
echo Done |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters