Jump to content

Question

Posted (edited)

Добавить возможность задать вызов любой CLI команды через нажатие кнопки. На каждый вариант нажатия (короткий, длинный, двойной) можно вписать список команд. Юзкейс может быть совершенно любым, это должно легко добавить +100 очков к конфигурабельности девайсов за минимальную стоимость. Пример:

system button WLAN on click do CliRun "interface Wireguard0 up" "interface Wireguard1 up"
system button WLAN on double-click do CliRun "interface Wireguard0 down" "interface Wireguard1 down"

Ну круто же! Выхлоп команд или неудачу парсинга пускать в диагностику для лёгкой отладки.

Навеяно вот этим ChatGPT ответом. Современные реалии таковы, что нейронка может придумать функционал, который зачастую является очень логичным и адекватным. Не иметь такую возможность в стандартной прошивке кажется упущением.

 

Edited by qmxocynjca

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.