#!/sbin/openrc-run

name="Shelli on PostmarketOS Startups"
start() {
  ofonoctl poweron
  ofonoctl online
  shelli-audio-discovery
  shelli-audio-update
# calling bluetoothctl power on when no bluetooth service is started or working blocks the phone from starting completely?
# TODO test if bluetooth service is running and only execute the following if it is.
#  bluetoothctl power on
}

stop() {
  ofonoctl offline
  ofonoctl poweroff
}
