diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-09-05 20:20:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-05 22:20:36 +0300 |
commit | 689002845733b73674d77ba9756822483a5464f1 (patch) | |
tree | ee861c7d2d1493f130ffd7b7b9e5b66c6d3c20e7 /op-mode-definitions | |
parent | 2bb858367f4726b033062f0bab4506c15ed937a4 (diff) | |
download | vyos-1x-689002845733b73674d77ba9756822483a5464f1.tar.gz vyos-1x-689002845733b73674d77ba9756822483a5464f1.zip |
opmode: T6694: move wake-on-lan to "execute wake-on-lan" (#4031)
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/wake-on-lan.xml.in | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/op-mode-definitions/wake-on-lan.xml.in b/op-mode-definitions/wake-on-lan.xml.in index 7119eeb65..625cf4056 100644 --- a/op-mode-definitions/wake-on-lan.xml.in +++ b/op-mode-definitions/wake-on-lan.xml.in @@ -1,26 +1,30 @@ <?xml version="1.0"?> <interfaceDefinition> - <node name="wake-on-lan"> - <properties> - <help>Send Wake-On-LAN (WOL) Magic Packet</help> - </properties> + <node name="execute"> <children> - <tagNode name="interface"> + <node name="wake-on-lan"> <properties> - <help>Interface where the station is connected</help> - <completionHelp> - <script>${vyos_completion_dir}/list_interfaces</script> - </completionHelp> + <help>Send Wake-On-LAN (WOL) Magic Packet</help> </properties> <children> - <tagNode name="host"> + <tagNode name="interface"> <properties> - <help>Station (MAC) address to wake up</help> + <help>Interface where the station is connected</help> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces</script> + </completionHelp> </properties> - <command>sudo /usr/sbin/etherwake -i "$3" "$5"</command> - </tagNode> + <children> + <tagNode name="host"> + <properties> + <help>Station (MAC) address to wake up</help> + </properties> + <command>sudo /usr/sbin/etherwake -i "$3" "$5"</command> + </tagNode> + </children> + </tagNode> </children> - </tagNode> + </node> </children> </node> </interfaceDefinition> |