mirror of
https://github.com/tanrax/bash-folders.git
synced 2025-10-10 02:05:50 +02:00
Removed uneeded start() function
This commit is contained in:
@@ -21,25 +21,6 @@ STATES:
|
|||||||
EOF
|
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() {
|
run() {
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user