slitaz-tools rev 129

netbox: add servers status
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 08 08:58:52 2008 +0000 (2008-04-08)
parents 3e06a6838849
children 63fe9c958012
files tinyutils/netbox
line diff
     1.1 --- a/tinyutils/netbox	Tue Apr 08 08:43:44 2008 +0000
     1.2 +++ b/tinyutils/netbox	Tue Apr 08 08:58:52 2008 +0000
     1.3 @@ -20,7 +20,7 @@
     1.4  # active connections.
     1.5  #
     1.6  export IFCONFIG='
     1.7 -<window title="Ifconfig" icon-name="network-wired">
     1.8 +<window title="Network status" icon-name="network-wired">
     1.9    <vbox>
    1.10      <text use-markup="true">
    1.11        <label>"
    1.12 @@ -35,6 +35,16 @@
    1.13          <input>ifconfig</input>
    1.14        </text>
    1.15      </frame>
    1.16 +    <text use-markup="true">
    1.17 +      <label>"
    1.18 +<b>Active network servers</b>"
    1.19 +      </label>
    1.20 +    </text>
    1.21 +    <frame Servers>
    1.22 +      <text wrap="false" width-chars="58">
    1.23 +        <input>for i in dropbear tftpd udhcpd dnsd rsync lighttpd ; do ps w | grep $i | grep -v grep; done</input>
    1.24 +      </text>
    1.25 +    </frame>
    1.26      <hbox>
    1.27        <button>
    1.28          <input file icon="exit"></input>
    1.29 @@ -582,8 +592,7 @@
    1.30  export NET_BOX
    1.31  
    1.32  # TODO: Servers/VNC(X11vnc) Servers/SMB(Samba)
    1.33 -# Modules(Network kernel module) Firewall(Iptables) VPN(OpenVPN)
    1.34 -# TODO: Status: running servers
    1.35 +# Modules(Network kernel modules) Firewall(Iptables) VPN(OpenVPN)
    1.36  
    1.37  # Only root can configure network.
    1.38  check_root