I am using the red network with a wifi antenna, which means my wan is an SSID, but whenever the system boots, I have to do a couple of steps before I can connect to the internet, first, I have to go to the tab network, in Assign MAC Address, change the mac, hit save and reconnect, then go to the system tab, and in Wireless Client, and there deactivate and activate the SSID, after all that, ipfire connects to the SSID and I manage to have Internet.
What I need is a script that runs at startup, but I don’t know where to put it, with chatgpt I can get the script, put it in the file /etc/sysconfig/rc.local but it does not work, here is the script
the script does not work in rc.local or it does not work at all? You need to have a script that when manually run, works according to expectations. Only after you have a functioning script we can discuss when it should be called in the boot sequence. I other words, you should be able to reboot, connect to the console, call the script and get online before discussing where to put the script.