forked from vyos/vyos-1x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opmode: T6694: move wake-on-lan to "execute wake-on-lan" (vyos#4031)
- Loading branch information
Showing
1 changed file
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |