Translations:Wi-Fi Old/24/en: различия между версиями
FuzzyBot (обсуждение | вклад) м (FuzzyBot переименовал страницу Translations:Wi-Fi/24/en в Translations:Wi-Fi Old/24/en без оставления перенаправления: Часть переводимой страницы Wi-Fi.) |
|
(нет различий)
|
Текущая версия на 15:56, 23 октября 2023
- If the return code from ping ($?) is not 0 (meaning there was an error)
if [ $? != 0 ] then
- Restart the wireless interface
ifdown --force ${WLANINTERFACE} ifup ${WLANINTERFACE} fi </syntaxhighlight>
- Make file executable by running the command
chmod +x /root/wifi_autoconnect.sh
- Schedule the script to run every minute. For this:
- Install cron:
apt-get install cron
- In the end of the
/etc/crontab
file add line* * * * * root /root/wifi_autoconnect.sh # be sure to add an empty line at the end of the file
- Install cron: