battery_nag.sh, only run if not already running.
This commit is contained in:
@@ -2,6 +2,15 @@
|
||||
# 20260819 - Hyperling
|
||||
# Alert the user every so often once the battery is low.
|
||||
|
||||
echo "`date` - Checking Active Programs"
|
||||
|
||||
ps -ef | grep battery_nag.sh | grep -v grep
|
||||
active="$?"
|
||||
if [[ "$active" == 0 ]]; then
|
||||
echo "Program already running, exiting."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "`date` - Loading Functions"
|
||||
|
||||
which battery.function
|
||||
|
||||
Reference in New Issue
Block a user