~ubuntu-branches/ubuntu/vivid/cairo-dock-plug-ins/vivid

« back to all changes in this revision

Viewing changes to netspeed/data/netspeed

Tags: upstream-2.0.9
Import upstream version 2.0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 #!/bin/bash < parAdOxxx_ZeRo
 
1
 #!/bin/bash
 
2
 
 
3
# Compiz check for Cairo-Dock
 
4
#
 
5
# Copyright : (C) 2009 by Rémy Robertson
 
6
# E-mail    : fabounet@users.berlios.de
 
7
#
 
8
#
 
9
# This program is free software; you can redistribute it and/or
 
10
# modify it under the terms of the GNU General Public License
 
11
# as published by the Free Software Foundation; either version 2
 
12
# of the License, or (at your option) any later version.
 
13
#
 
14
# This program is distributed in the hope that it will be useful,
 
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
# GNU General Public License for more details.
 
18
# http://www.gnu.org/licenses/licenses.html#GPL
 
19
 
2
20
rm -f /tmp/netspeed
3
21
#Il est pas beau mon script hein ^^
4
22
cat /proc/net/dev | sed -e '{1d;2d;3d}' -e "s/:/é/g" -e "s/ /_/g" -e "s/_*\(.*\)é_*\([0-9][0-9]*\)__*[0-9][0-9]*__*[0-9][0-9]*__*[0-9][0-9]*__*[0-9][0-9]*__*[0-9][0-9]*__*[0-9][0-9]*__*[0-9][0-9]*__*\([0-9][0-9]*\)__*[0-9][0-9]*__*[0-9][0-9]*__*[0-9][0-9]*__*[0-9][0-9]*__*[0-9][0-9]*__*[0-9][0-9]*__*[0-9][0-9]*/\1>\2>\3/" > /tmp/netspeed