updates for bookworm NetworkManager setup
This commit is contained in:
@@ -9,20 +9,21 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
source /etc/piwifiap.conf
|
||||
|
||||
if [ "$network_system" = "systemd-networkd" ]
|
||||
then
|
||||
systemctl enable hostapd
|
||||
systemctl start hostapd
|
||||
elif [ "$network_system" = "NetworkManager" ]
|
||||
then
|
||||
nmcli con mod piwifi-ap autoconnect yes
|
||||
nmcli con up piwifi-ap
|
||||
else
|
||||
echo "Unable to determine what type of network configuration (systemd-networkd"
|
||||
echo "or NetworkManager) your system uses."
|
||||
echo "Cannot enable wireless access point."
|
||||
exit 2
|
||||
fi
|
||||
source /etc/piwifiap/piwifiap.conf
|
||||
|
||||
case "$network_system" in
|
||||
"systemd-networkd")
|
||||
systemctl enable hostapd
|
||||
systemctl start hostapd
|
||||
;;
|
||||
"NetworkManager")
|
||||
nmcli con mod piwifi-hotspot autoconnect yes
|
||||
nmcli con up piwifi-hotspot passwd-file /etc/piwifiap/piwifiap.secret
|
||||
;;
|
||||
*)
|
||||
echo "Unable to determine what type of network configuration (systemd-networkd"
|
||||
echo "or NetworkManager) your system uses."
|
||||
echo "Cannot enable wireless access point."
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user