slitaz-tools rev 141

Netbox: add etherwake tab
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 14 11:36:39 2008 +0000 (2008-04-14)
parents c8ceb6129876
children e07f37112a41
files tinyutils/netbox
line diff
     1.1 --- a/tinyutils/netbox	Sun Apr 13 10:21:18 2008 +0000
     1.2 +++ b/tinyutils/netbox	Mon Apr 14 11:36:39 2008 +0000
     1.3 @@ -92,7 +92,7 @@
     1.4    
     1.5      <notebook labels="DHCP|Static IP|System wide|Servers'
     1.6  [ -x /sbin/iptables ] && NET_BOX="$NET_BOX|Firewall"
     1.7 -tmp='">
     1.8 +tmp='|Etherwake">
     1.9    
    1.10      <frame Udhcpc>
    1.11        <hbox>
    1.12 @@ -641,6 +641,25 @@
    1.13  '
    1.14  [ -x /sbin/iptables ] && NET_BOX="$NET_BOX${tmp}"
    1.15  tmp='
    1.16 +    <frame Ether-wake>
    1.17 +    <hbox>
    1.18 +      <text use-markup="true">
    1.19 +        <label>"<b>Options : </b>"</label>
    1.20 +      </text>
    1.21 +      <entry editable="false">
    1.22 +        <variable>ETHERWAKE_OPTS</variable>
    1.23 +      </entry>
    1.24 +      <button>
    1.25 +        <input file icon="help"></input>
    1.26 +	<action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -geometry 80x15 -title "dnsd help" -e "ether-wake --help ; echo -e \"----\nENTER to continue...\" && read close"</action>
    1.27 +      </button>
    1.28 +      <button>
    1.29 +        <label>Start</label>
    1.30 +        <input file icon="forward"></input>
    1.31 +        <action>ether-wake $ETHERWAKE_OPTS</action>
    1.32 +      </button>
    1.33 +    </hbox>
    1.34 +    </frame>
    1.35      </notebook>
    1.36  
    1.37      <hbox>