[Fai-commit] r5812 - in trunk: debian lib
Thomas Lange
lange at alioth.debian.org
Sun Jun 20 14:10:32 UTC 2010
Author: lange
Date: 2010-06-20 14:10:29 +0000 (Sun, 20 Jun 2010)
New Revision: 5812
Modified:
trunk/debian/changelog
trunk/lib/subroutines
Log:
subroutines: show rx and tx bytes for network device at the end
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2010-06-20 13:23:18 UTC (rev 5811)
+++ trunk/debian/changelog 2010-06-20 14:10:29 UTC (rev 5812)
@@ -11,6 +11,7 @@
(thanks to Mika Prokop for the patch)
* disk-info: rename subroutine
* faimond-gui: Tk::Balloon is not used atm.
+ * subroutines: show rx and tx bytes for network device at the end
[ Michael Tautschnig ]
* control: Move setup-storage to its own package (fai-setup-storage). Thanks
Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines 2010-06-20 13:23:18 UTC (rev 5811)
+++ trunk/lib/subroutines 2010-06-20 14:10:29 UTC (rev 5812)
@@ -901,6 +901,8 @@
if [ $do_init_tasks -eq 1 ] ; then
# show some local information
ip -s link show up; df
+ # show rx and tx bytes of network device
+ grep . /sys/class/net/*/statistics/*x_bytes | perl -ane 'm#/sys/class/net/(.+)/statistics/(.+):(\d+)# && ($3) && ($1 ne lo) && printf "%s %s %.2f Mbytes\n",$1,$2,$3/1000000 '
# umount swap space
swapoff -a
fi
More information about the Fai-commit
mailing list