Saturday, September 5, 2015

Raspberry Pi 无线网卡自动连接

1.修改 Debian 中 crontab 默认编辑器 nano 为 vi

sudo update-alternatives --config editor

2.下载 WiFi_Check 脚本及修改权限

sudo wget http://bit.ly/1KQXwMW -O /usr/local/bin/WiFi_Check
sudo chmod 0755 /usr/local/bin/WiFi_Check

3.添加 Cron 任务每两分钟检查一次

sudo crontab -e
*/2 * * * * /usr/bin/sudo -H /usr/local/bin/WiFi_Check >> /dev/null 2>&1

参考资料:
1.http://bit.ly/1VEjTZc
2.http://bit.ly/1KQXwMX

via Chu's Space http://bit.ly/1VEjTZe

Powered by Blogger Skins. Theme: TheBuckmaker | Free Wordpress Templates. Presents HD TV Futurama Streaming. Featured on Wedding Dresses.