Commit Graph

13 Commits

Author SHA1 Message Date
Ivan e3c9ae3c71
contrib/net-speed: extend interface list filter (#376)
1) Names incorporating Firmware/BIOS provided index numbers for on-board
devices (example: eno1)

2) Names incorporating Firmware/BIOS provided PCI Express hotplug slot
index numbers (example: ens1)

3) Names incorporating physical/geographical location of the connector
of the hardware (example: enp2s0)

4) Names incorporating the interfaces's MAC address
(example: enx78e7d1ea46da)

5) Classic, unpredictable kernel-native ethX naming
(example: eth0)

I've used usb/eth dongle with name enx..., and need only this one name,
but extend filter to include other ones as well.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>

Co-authored-by: Orestis Floros <orestisflo@gmail.com>
2020-05-01 21:45:36 +02:00
reuben honigwachs 33ba83e76e
Update net-speed.sh
Added the common prefix `enx` as possible string for interface detection. See https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
2020-04-01 23:32:49 +02:00
Ilya Bystrov 3a4f47295d Wrapper with the ability to add custom info in any position 2020-02-21 21:59:27 +03:00
Moritz Warning 3f6d71feb9 Consolidate measure speed script (#188)
* remove old net speed scripts

* add reworked net-speed script

* add space between rate and speed suffix

it is easier to parse visually

* only use intervals greater zero

* add ifaces examples

* catch negativ byte count

happens when the counter resets
2017-01-02 16:06:06 +01:00
Zhong Jianxin 9832a0d93a Re-license contrib/netspeed to the same as i3status (#189)
Signed-off-by: Zhong Jianxin <azuwis@gmail.com>
2016-12-25 23:00:15 +01:00
Dmitrij D. Czarkoff cc77338ff4 check_mail.py: more detailed report on IOError
When user doesn't have permissions to access some file, he is better served by
exact error message python recieved then by statement "not a mailbox".
2016-01-21 10:36:30 +01:00
Dmitrij D. Czarkoff 6714fd9c1c Basic mail checker in python 2015-08-07 22:47:34 +02:00
Deiz 5e8303ef17 Basic XDG support and minor tweaks to the net-speed script 2015-04-04 13:12:30 -04:00
Zhong Jianxin 519d7f6d63 Add contrib/net-speed
A reimplementation of contrib/measure-net-speed.bash.

- Single script
- Compatible with most POSIX shells, tested with bash, dash, busybox ash
- Auto detect interfaces
- Does not write temp files
2015-03-16 11:31:33 +08:00
Jiri Pinkava 5c583c418d contrib: fix premature insetion of status message into JSON
Pass first 2 lines of JSON unmodified. It contains protocol version
and start of block of blocks of status messages.
2013-02-27 01:20:56 +01:00
Valentin Haenel c69da4c4f5 contrib: python version of the wrapper 2012-08-12 17:59:07 +02:00
Michael Stapelberg b61f70b05f Import measure-net-speed bash scripts to contrib/ 2012-08-04 21:31:06 +02:00
Michael Stapelberg 2e3490141d add a small perl example wrapper script for i3status’s JSON output 2012-06-10 19:42:53 +02:00