wifi module
Posted: 15 Feb 2022, 19:39
I'm trying to make a module that I can run when I'm not in an update mode. And while the network part works the wifi password does not. Each time I boot I have to connect to the wifi by entering the password. What am I missing?

Code: Select all
# -- Network files --
# touch /var/lib/dhcpcd/dhcpd.leases
cp -a --parents /var/run/NetworkManager/* /tmp/mod/
cp -a --parents /var/run/syslogd.cache /tmp/mod/
cp -a --parents /var/lib/NetworkManager/* /tmp/mod/
cp -a --parents /var/lib/dhcpcd/* /tmp/mod/
cp -a --parents /etc/resolv.conf /tmp/mod/
cp -a --parents /etc/NetworkManager/system-connections/* /tmp/mod/
cp -a --parents /etc/hosts /tmp/mod/