topical media & game development
basic-shell-12-net2mrtg.sh / sh
#!/bin/sh
# Network status.
# Pass name of network interface, such as eth0, as $1.
interface=$1 # Save value, because we overwrite $1
stats=`netstat -i | grep stats
echo $4
echo $8
echo `uptime`
echo `hostname`
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.