battery_nag, add comments.
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
# 20260819 - Hyperling
|
||||
# Alert the user every so often once the battery is low.
|
||||
|
||||
## Setup ##
|
||||
|
||||
echo "`date` - Checking Active Programs"
|
||||
|
||||
PID="$$"
|
||||
@@ -21,6 +23,8 @@ which battery.function || {
|
||||
}
|
||||
source battery.function
|
||||
|
||||
## Params ##
|
||||
|
||||
echo "`date` - Parsing Parameters"
|
||||
|
||||
typeset -i alert sleep
|
||||
@@ -41,6 +45,7 @@ if [[ -n "$2" ]]; then
|
||||
echo "to '$sleep'"
|
||||
fi
|
||||
|
||||
# Default to true.
|
||||
accelerate="Y"
|
||||
if [[ -n "$3" ]]; then
|
||||
echo -n "accelerate changed from '$accelerate' "
|
||||
@@ -57,6 +62,8 @@ else
|
||||
fi
|
||||
echo " (accelerate == $accelerate)"
|
||||
|
||||
## Main ##
|
||||
|
||||
echo "`date` - Starting Loop"
|
||||
|
||||
while true; do
|
||||
|
||||
Reference in New Issue
Block a user