You are not logged in.
Hello
During installation I followed the instructions below:
cd /etc/netctl
cp examples/wireless-wpa my-network
to create a config for my wireless network. The problem I have now is that I have since renamed that file to not include the "-" character, but the systemctl unit remains:
netctl@my\x2dnetwork.service enabled
I would like to remove it. However, running
systemctl disable netctl@my\x2dnetwork.service
Does not work. Its still there, listed as active. Running
systemctl disable netctl@my-network.service
Does not work either. How can I get rid of it?
Last edited by khoma (2015-05-17 10:49:37)
Offline
Hi, Disabling the profile will only stop it from running at next boot by removing the symlink to the service. Use
# netctl stop profile
to stop the profile after it has started. Then disable the profile if it is still enabled (although it shouldn't be as you have done that already) and then delete the profile from the /etc/netctl directory.
edit: use
# netctl disable profile
to ensure it is disabled
Last edited by dcdriving (2015-05-17 10:44:28)
Offline
I would like to remove it. However, running
systemctl disable netctl@my\x2dnetwork.service
Does not work. Its still there, listed as active.
"does not work"? What happened, what was the output? systemctl tells you when it removes symlinks, but if the service is not enabled, it will do nothing. And disable does not stop the service, so it should be no surprise that it is still active. What would be interesting is whether is it also still listed as "enabled".
I think systemctl didn't output anything and the service is indeed still enabled, because when you use a shell to run that command, you need to prevent the shell from treating the backslash as an escape character, otherwise you're disabling the service named "netctl@myx2dnetwork.service" and that one was never enabled in the first place. Escape the backslash using another backslash (my\\x2dnetwork) or put single quotes around in.
Offline
Ah, thank you. That seems to have fixed my wireless issues
Edit: using netctl to disable both profiles I can now use netctl-auto to get wireless going.
Last edited by khoma (2015-05-17 10:50:41)
Offline