Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/router/freeboxuptime | ||
|---|---|---|
| 22 | 22 |
# Running: HP embedded |
| 23 | 23 |
# OS details: HP Onboard Administrator management console |
| 24 | 24 |
# Uptime: 7.226 days (since Thu Dec 9 21:01:44 2010) |
| 25 |
#
|
|
| 25 |
# |
|
| 26 | 26 |
# OS detection performed. Please report any incorrect results at http://nmap.org/submit/ . |
| 27 | 27 |
# Nmap done: 1 IP address (1 host up) scanned in 29.279 seconds |
| 28 | 28 |
# ---------------------------------------------------------------------------------------------------- |
| ... | ... | |
| 71 | 71 |
echo "no (Freebox not reachable)" |
| 72 | 72 |
exit 2 |
| 73 | 73 |
else |
| 74 |
echo yes
|
|
| 74 |
echo yes |
|
| 75 | 75 |
exit 0 |
| 76 | 76 |
fi |
| 77 | 77 |
fi |
| ... | ... | |
| 87 | 87 |
graph_info="Shows the uptime of your freebox (cache: ${CACHE_HOURS}h"
|
| 88 | 88 |
if [ -f $CACHE_FILE ]; then |
| 89 | 89 |
lastCheck=$(stat -c %z $CACHE_FILE | cut -d"." -f1) |
| 90 |
lastReboot=$(awk -F"@" '{print $2}' $CACHE_FILE)
|
|
| 90 |
lastReboot=$(awk -F"@" '{print $2}' $CACHE_FILE)
|
|
| 91 | 91 |
graph_info="${graph_info} - last check: ${lastCheck} - last reboot: $lastReboot"
|
| 92 | 92 |
else |
| 93 | 93 |
graph_info="${graph_info})"
|
Formats disponibles : Unified diff