# vim: ft=sh function nginx () { nc -zw2 127.0.0.1 80 || echo "injoignable sur port 80 local" nc -zw2 sebmarque.hd.free.fr 80 || echo "injoignable sur port 80 distant" nc -zw2 sebmarque.hd.free.fr 443 || echo "injoignable sur port 443 distant" } function searx () { nc -zw2 127.0.0.1 8888 || echo "injoignable sur port 8888" } function gitprep () { nc -zw2 127.0.0.1 10020 || echo "injoignable sur port 10020" } function cherrymusic () { nc -zw2 127.0.0.1 8080 || echo "injoignable sur port 8080" } function core_temp () { local min=60 local level=("warning" "severe" "danger!") local step=$(( $( $((min + step * 10))°" fi } function core_alim () { eval $(/opt/vc/bin/vcgencmd measure_volts core) test $volt == "1.2000V" || echo "$volt" } function load_avg () { local procs=4 local load=($(