Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/other/globesurfer | ||
|---|---|---|
| 1 | 1 |
#!/bin/sh |
| 2 |
#
|
|
| 3 |
#
|
|
| 4 |
# Script to the signal strength of a Open GlobeSurfer II 3G router.
|
|
| 2 |
# |
|
| 3 |
# |
|
| 4 |
# Script to the signal strength of a Open GlobeSurfer II 3G router. |
|
| 5 | 5 |
# |
| 6 | 6 |
# Parameters understood: |
| 7 | 7 |
# |
| ... | ... | |
| 31 | 31 |
fi |
| 32 | 32 |
|
| 33 | 33 |
wget -q http://192.168.1.1 -O /tmp/index.html |
| 34 |
grep "dBm" /tmp/index.html | perl -ne 'if (/(-\d+) dBm/) {print "-en signal_strength.value ".$1}';
|
|
| 34 |
grep "dBm" /tmp/index.html | perl -ne 'if (/(-\d+) dBm/) {print "-en signal_strength.value ".$1}';
|
|
| 35 | 35 |
rm /tmp/index.html |
Formats disponibles : Unified diff