Compare commits
2 commits
381ab705c4
...
af023a6fc2
Author | SHA1 | Date | |
---|---|---|---|
![]() |
af023a6fc2 | ||
![]() |
b301d9503e |
2 changed files with 3 additions and 2 deletions
|
@ -45,6 +45,7 @@
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
// every 7 hours
|
// every 7 hours
|
||||||
"interval": 25200,
|
"interval": 25200,
|
||||||
|
"on-click": "",
|
||||||
},
|
},
|
||||||
|
|
||||||
{% for iface in host.wireless %}
|
{% for iface in host.wireless %}
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
info="$(xbps-install -Mun)"
|
info="$(xbps-install -Mun)"
|
||||||
|
[ -z $info ] && exit
|
||||||
|
|
||||||
PKG_COUNT="$(echo "$info" | wc -l)"
|
PKG_COUNT="$(echo -n "$info" | wc -l)"
|
||||||
[ $PKG_COUNT -eq 0 ] && exit
|
|
||||||
|
|
||||||
DL_SIZE="$(echo "$info" | awk '{s+=$6}END{print s}' | numfmt --to=iec-i)B"
|
DL_SIZE="$(echo "$info" | awk '{s+=$6}END{print s}' | numfmt --to=iec-i)B"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue