36 lines
No EOL
782 B
Bash
Executable file
36 lines
No EOL
782 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# author: Daniel Sommer <daniel.sommer@velvettear.de>
|
|
# license: MIT
|
|
|
|
set -e
|
|
|
|
[[ "$EUID" != "0" ]] && printf "error: permission denied\n" && exit 1
|
|
|
|
. "$(dirname $(realpath $0))/config.env"
|
|
|
|
printf "${FONT_BOLD}>>> stopping pedalboard...${FONT_NORMAL}\n"
|
|
|
|
. "/usr/local/pisound/scripts/common/common.sh"
|
|
|
|
flash_leds 10
|
|
sleep 0.25
|
|
flash_leds 10
|
|
|
|
printf "> stopping pbc..."
|
|
systemctl stop pbc &> /dev/null
|
|
printf " done!\n"
|
|
|
|
printf "> stopping MODEP..."
|
|
patchbox module deactivate &> /dev/null
|
|
printf " done!\n"
|
|
|
|
printf "> stopping jack..."
|
|
systemctl stop jack &> /dev/null
|
|
printf " done!\n"
|
|
|
|
printf "> " && "/etc/velvettear/scripts/cpu-governor.sh" "powersave"
|
|
|
|
flash_leds 100
|
|
|
|
printf "${FONT_BOLD}>>> stopped pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n" |