Все переводы

Введите имя сообщения для показа всех доступных переводов.

Сообщение

Найдено 2 перевода.

СообщениеТекущий текст
 ист. английский (en)# 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 <syntaxhighlight lang="bash">
chmod +x /root/wifi_autoconnect.sh
</syntaxhighlight>
# Schedule the script to run every minute. For this:
## Install ''cron'': <syntaxhighlight lang="bash">
apt-get install cron
</syntaxhighlight>
## In the end of the<code>/etc/crontab</code> file add line<syntaxhighlight lang="bash">
*  * * * * root /root/wifi_autoconnect.sh
# be sure to add an empty line at the end of the file
</syntaxhighlight>
 ист. русский (ru)# 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>
# Сделайте файл исполняемым, выполнив команду <syntaxhighlight lang="bash">
chmod +x /root/wifi_autoconnect.sh
</syntaxhighlight>
# Запланируйте выполнение скрипта каждую минуту. Для этого:
## Установите ''cron'': <syntaxhighlight lang="bash">
apt-get install cron
</syntaxhighlight>
## Добавьте в конец файла <code>/etc/crontab</code> строку<syntaxhighlight lang="bash">
*  * * * * root /root/wifi_autoconnect.sh
# обязательно добавьте пустую строку в конец файла
</syntaxhighlight>