36 lines
764 B
Bash
36 lines
764 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
# author: Daniel Sommer <daniel.sommer@velvettear.de>
|
||
|
# license: MIT
|
||
|
|
||
|
set -e
|
||
|
|
||
|
[[ "$EUID" != "0" ]] && printf "error: permission denied\n" && exit 1
|
||
|
|
||
|
source "./config.env"
|
||
|
|
||
|
printf "${FONT_BOLD}> stopping pedalboard...${FONT_NORMAL}\n"
|
||
|
|
||
|
source "/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"
|