简体   繁体   中英

How do I rfkill block wi-fi on my raspberry only for a few hours? (Only ssh access)

Right now I can only access my raspberry pi zero w via wifi but still I would like to block wifi for a few hours every day and then unblock it automatically so I can access the raspberry again.

Normally, one could just use rfkill to block and unblock but because I will not be able to log in when wi-fi is down, I will need a script to unblock wi-fi automatically after a few hours.

Is this possible?

use a cron-job or a systemd timer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM