Skip to content

Commit

Permalink
opmode: T6694: move wake-on-lan to "execute wake-on-lan" (vyos#4031)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbaturin authored Sep 5, 2024
1 parent 2bb8583 commit 6890028
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions op-mode-definitions/wake-on-lan.xml.in
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 6890028

Please sign in to comment.