Jump to content

omezik

Forum Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by omezik

  1. "PPPoE0": disabled connection.
    Error: Network::Interface::PPPoE: "PPPoE0": discovery interface is not set.

    Попробовал через консоль SSH.

    Интернет отключился и на этом все в PPPoE0 подключения снялась галочка "с включить" и  Подключаться через  поменялось на любое подключение хотя была через ISP

  2. SHELL=/bin/sh
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/bin:/opt/sbin
    MAILTO=""
    HOME=/
    # ---------- ---------- Default is Empty ---------- ---------- #
    */1 * * * * root /opt/bin/run-parts /opt/etc/cron.1min    
    */5 * * * * root /opt/bin/run-parts /opt/etc/cron.5mins    
    01 * * * * root /opt/bin/run-parts /opt/etc/cron.hourly    
    02 4 * * * root /opt/bin/run-parts /opt/etc/cron.daily    
    22 4 * * 0 root /opt/bin/run-parts /opt/etc/cron.weekly    
    42 4 1 * * root /opt/bin/run-parts /opt/etc/cron.monthly
    0 */1 * * * root /opt/sbin/reboot
    0 */1 * * * /opt/sbin/reboot
    00 0 * * * /opt/sbin/reboot
    00 1 * * * /opt/sbin/reboot
    00 2 * * * /opt/sbin/reboot
    00 3 * * * /opt/sbin/reboot
    00 4 * * * /opt/sbin/reboot
    00 5 * * * /opt/sbin/reboot
    00 6 * * * /opt/sbin/reboot
    00 7 * * * /opt/sbin/reboot
    00 8 * * * /opt/sbin/reboot
    00 9 * * * /opt/sbin/reboot
    00 10 * * * /opt/sbin/reboot
    00 11 * * * /opt/sbin/reboot
    00 12 * * * /opt/sbin/reboot
    00 13 * * * /opt/sbin/reboot
    00 14 * * * /opt/sbin/reboot
    00 15 * * * /opt/sbin/reboot
    00 16 * * * /opt/sbin/reboot
    00 17 * * * /opt/sbin/reboot
    00 18 * * * /opt/sbin/reboot
    00 19 * * * /opt/sbin/reboot
    00 20 * * * /opt/sbin/reboot
    00 21 * * * /opt/sbin/reboot
    00 22 * * * /opt/sbin/reboot
    00 23 * * * /opt/sbin/reboot
     

  3. Перед редактированием файла crontab делаю следующее в терминале ssh

    /opt/etc/init.d/S10cron stop останавливаю службы cron
    chmod 600 /opt/etc/crontab применяю права к фаилу (иначе пишит ошибки)
    /opt/etc/init.d/S10cron start запускаю службу cron

    Пустая строка имеется в конце, cron не выполняет не одну из команд за исключением . interface PPPoE0 no connect а interface PPPoE0 connenct не выполняет.

    Может как то можно объединить 2 команды в одну interface PPPoE0 no connect / interface PPPoE0 connenct, по типу interface pppoe0 reboot если писать в каждую строку то первая строка выполняется судя по логам а вторая нет.

  4. Прошу о помощи.

    Аппарат GIGA 2 прошивка 2.08 + Entware-3x + cron

    Все это делалось для перезагрузки роутера раз в один час (для смены ip адресов)

    SHELL=/bin/sh
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/bin:/opt/sbin
    MAILTO=""
    HOME=/
    # ---------- ---------- Default is Empty ---------- ---------- #
    */1 * * * * root /opt/bin/run-parts /opt/etc/cron.1min    
    */5 * * * * root /opt/bin/run-parts /opt/etc/cron.5mins    
    01 * * * * root /opt/bin/run-parts /opt/etc/cron.hourly    
    02 4 * * * root /opt/bin/run-parts /opt/etc/cron.daily    
    22 4 * * 0 root /opt/bin/run-parts /opt/etc/cron.weekly    
    42 4 1 * * root /opt/bin/run-parts /opt/etc/cron.monthly
    50 22 * * * reboot

     

    Команда 50 22 * * * reboot не выполняется может ее нужно как то по другому прописать.

    Или какую другую команду для переподключения PPPoE0 подключения.

    Пробывал вот так 

    50 22 * * * ndmq -p 'interface PPPoE0 down' -P message;

    51 22 * * * ndmq -p 'interface PPPoE0 up' -P message

    Выполняется только первая команда, а вторая нет. (Впринципе ip не меняет даже если в терменале ssh ввести, просто отключается интернет а потом включается)

     
×
×
  • Create New...