Miscellany
public text v1 · immutable#!/bin/bash
ld=$(cut -d" " -f2 /proc/loadavg)
echo $ld
#ld=15.80
if [[ $(bc <<<"$ld > 12.00") != 0 ]] ;then
-command to restart interface here-
fi
#!/bin/bash
ld=$(cut -d" " -f2 /proc/loadavg)
echo $ld
#ld=15.80
if [[ $(bc <<<"$ld > 12.00") != 0 ]] ;then
-command to restart interface here-
fi