mirror of
https://github.com/tanrax/bash-folders.git
synced 2025-10-09 17:55:51 +02:00
Removed uneeded start() function
This commit is contained in:
@@ -21,25 +21,6 @@ STATES:
|
||||
EOF
|
||||
}
|
||||
|
||||
start() {
|
||||
local cap
|
||||
cap="$(capacity)"
|
||||
|
||||
case "$(status | tr '[:upper:]' '[:lower:]')" in
|
||||
full )
|
||||
run_full
|
||||
;;
|
||||
discharging )
|
||||
run_discharging
|
||||
(( cap <= settings['low'] )) && run_low
|
||||
;;
|
||||
charging )
|
||||
run_charging
|
||||
(( cap >= settings['high'] )) && run_high
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
run() {
|
||||
set -e
|
||||
|
||||
|
Reference in New Issue
Block a user