SWITCH ON/OFF wifi with buton

Hi, ive got a raspi 3 and the case, and when its overheating, everithing goes down. thats why i shot down the bluetooth in the graphical mode, and i would like to shut down the wifi too, but i would like to swith/on/off with the button (not only the hotspot).

can someone help me with the script? thanks

Looks like you want to use rfkill command in the scripts - it seems it should do what you’re after.

1 Like

great thank you! i copy paste and modify the shutdown script, and it works like a charme BUT, the double clik seems to not work exactly as i want, do you know that issue?

Instead of rewriting the current scripts provided by default, you should rather create your own scripts and set them up in pisound-config, see this tutorial.