summaryrefslogtreecommitdiff
path: root/op-mode-definitions/wake-on-lan.xml.in
blob: d4589c868d3655105d3bba38f0b7629ac3f1af3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="execute">
    <children>
      <node name="wake-on-lan">
        <properties>
          <help>Send Wake-On-LAN (WOL) Magic Packet</help>
        </properties>
        <children>
          <tagNode name="interface">
            <properties>
              <help>Interface where the station is connected</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_interfaces</script>
              </completionHelp>
            </properties>
            <children>
              <tagNode name="host">
                <properties>
                  <help>Station (MAC) address to wake up</help>
                </properties>
                <command>sudo /usr/sbin/etherwake -i "$4" "$6"</command>
              </tagNode>
            </children>
            </tagNode>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>