View Single Post
mrsellout's Avatar
Posts: 889 | Thanked: 2,087 times | Joined on Sep 2010 @ Manchester
#1932
Originally Posted by oenone View Post
...
iw reg set [2 letter country code, eg BE, DK, RU, AU, etc]
works but does not survive reboot and it changes back to the original settings.
...
You could create a systemd unit file to execute this command on boot.

Create a file /etc/systemd/system/enablewifich.service with the following
Code:
[Unit] 
Description=Change region to enable WIFI channels 12 & 13  

[Service]
Type=oneshot 
ExecStart=/bin/sh -c "echo OFF > iw reg set GB"  

[Install]
WantedBy=multi-user.target
then enable the service

Code:
systemctl enable enablewifich.service
This was adapted from this link:
https://unix.stackexchange.com/quest...pt-for-systemd

Last edited by mrsellout; 2017-10-20 at 10:36. Reason: changed domain to correct GB
 

The Following 3 Users Say Thank You to mrsellout For This Useful Post: