11-18-2024, 02:23 AM
This is a well known bug, and this comment in the bug-thread explains what you can do to solve this temporarily.
There's hope the bug may be fixed once postmarketOS provides Plasma Mobile images with systemd.
Because I am lazy and kept forgetting about this, I've since a copy of the following as a file called network-fix.sh on all my Plasma Mobile devices:
Just put this in a file called network-fix.sh on your phone, mark it as executable (chmod +x network-fix.sh) and run it (./network-fix.sh) whenever you have connected to a new network you automatically want to reconnect to.
There's hope the bug may be fixed once postmarketOS provides Plasma Mobile images with systemd.
Because I am lazy and kept forgetting about this, I've since a copy of the following as a file called network-fix.sh on all my Plasma Mobile devices:
Code:
#!/bin/ash
# Path to the directory with .nmconnection files
DIR="/etc/NetworkManager/system-connections/"
# Loop through each .nmconnection file in the directory
for FILE in "$DIR"*.nmconnection; do
# Check if the file contains a "permissions=" line
if grep -q "^permissions=" "$FILE"; then
# Replace the entire permissions line with just "permissions="
sed -i "s/^permissions=.*/permissions=/" "$FILE"
echo "Updated $FILE"
else
echo "No permissions line found in $FILE"
fi
done
Just put this in a file called network-fix.sh on your phone, mark it as executable (chmod +x network-fix.sh) and run it (./network-fix.sh) whenever you have connected to a new network you automatically want to reconnect to.