batteryobserver.sh: different sleeping time depending on battery level
This commit is contained in:
parent
63ecdece12
commit
6222f1edc6
1 changed files with 7 additions and 1 deletions
|
@ -28,6 +28,12 @@ while true; do
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
if [ $level -gt 50 ]; then
|
||||||
|
sleep 40m
|
||||||
|
elif [ $level -gt 30 ]; then
|
||||||
|
sleep 10m
|
||||||
|
else
|
||||||
sleep 2m
|
sleep 2m
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue