Disable Wi-Fi

Asked by chintalvaady

Hi All,

I have a specifc requirement which i would like to implement if possible.

* Disable Wi-Fi at start up
* Wi-Fi can be enabled only after running a specific script

What i hv done so far is as follows :

I have addedd "rfkill block wifi" in /etc/rc.local--> This works but the user is again able to enable wi-fi by right clicking wi-fi icon in the Ubuntu taskbar available in top right of my display.

My specifc requirement is to ensure that "Wi-Fi" cannot be enabled any of the user interface icons or menus.

And it should be enabled only through a script which runs a command like rfkill unblock wifi

Please advise

Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You could unload the wifi driver in rc.local then have a script which they can run and add modprobe to visudo

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#2

Hi ,

first you must find which driver (module) the WiFi uses. Then you can blacklist or rmmod this module in startup and then create a script with root privileges (so the password will be needed if you want to run the script) to modprobe (load) again the module wherever you need.

Regards
 NikTh

Can you help with this problem?

Provide an answer of your own, or ask chintalvaady for more information if necessary.

To post a message you must log in.