You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
193 B

#!/bin/sh -e
x=$(date|cut -f5 -d' '|cut -f1 -d:)
brownout $(bc -e "define redlevel(x) {
if((x-12) <= 0)
return((83*(12-x)))
else
return((83*(x-12)))
} redlevel($x)")