Skip to content

Commit

Permalink
luci-app-ddns: support commands in ip_script field
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Nachtigall <github@jenszo.de>
  • Loading branch information
jenszo committed Oct 1, 2024
1 parent 63d8b79 commit ef11a65
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,13 @@ return view.extend({

o = s.taboption('advanced', form.Value, 'ip_script',
_("Script"),
_("User defined script to read systems IP-Address"));
_("Executable script, command or ash compatible statement to read systems IP-Address.")
+ "<br />" +
_("Using dig: `dig -4 +short myip.opendns.com @resolver1.opendns.com`")
+ "<br />" +
_("Using wget: `wget -q -O- 'https://api64.ipify.org'`")
+ "<br />" +
_("Using custom shell script: `/etc/config/getipv4.sh"));
o.modalonly = true;
o.depends("ip_source", "script")
o.placeholder = "/path/to/script.sh"
Expand Down

0 comments on commit ef11a65

Please sign in to comment.