fixed formatting

This commit is contained in:
Daniel Sommer 2022-03-25 15:20:46 +01:00
parent 817467a20d
commit 28d8e3994f
2 changed files with 16 additions and 16 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# author: Daniel Sommer <daniel.sommer@velvettear.de>>> # author: Daniel Sommer <daniel.sommer@velvettear.de>
# license: MIT # license: MIT
set -e set -e
@ -9,7 +9,7 @@ set -e
source "./config.env" source "./config.env"
printf "${FONT_BOLD}> starting pedalboard...${FONT_NORMAL}\n" printf "${FONT_BOLD}>>> starting pedalboard...${FONT_NORMAL}\n"
source "/usr/local/pisound/scripts/common/common.sh" source "/usr/local/pisound/scripts/common/common.sh"
@ -17,34 +17,34 @@ flash_leds 10
sleep 0.25 sleep 0.25
flash_leds 10 flash_leds 10
printf ">>> " && "/etc/velvettear/scripts/cpu-governor.sh" "performance" printf "> " && "/etc/velvettear/scripts/cpu-governor.sh" "performance"
printf ">>> starting MODEP..." printf "> starting MODEP..."
patchbox module activate modep &>>> /dev/null patchbox module activate modep &> /dev/null
printf " done!\n" printf " done!\n"
up="$(journalctl -u modep-touchosc2midi | tail -n1)" up="$(journalctl -u modep-touchosc2midi | tail -n1)"
while [[ "$up" != *"Waiting for first package from touchOSC"* ]]; do while [[ "$up" != *"Waiting for first package from touchOSC"* ]]; do
printf ">>> waiting for touchosc2midi to come up...\n" printf "> waiting for touchosc2midi to come up...\n"
sleep 0.1 sleep 0.1
up="$(journalctl -u modep-touchosc2midi | tail -n1)" up="$(journalctl -u modep-touchosc2midi | tail -n1)"
done done
printf ">>> sending message to touchosc2midi to wake it up...\n" printf "> sending message to touchosc2midi to wake it up...\n"
oscsend localhost 12101 / m 000000b0 oscsend localhost 12101 / m 000000b0
if [[ ! -e "/etc/systemd/system/pbc.service" ]]; then if [[ ! -e "/etc/systemd/system/pbc.service" ]]; then
printf ">>> symlinking \'pbc.service\' to \'/etc/systemd/system\'..." printf "> symlinking \'pbc.service\' to \'/etc/systemd/system\'..."
ln -s "/opt/pbc/pbc.service" "/etc/systemd/system/pbc.service" &>>> /dev/null ln -s "/opt/pbc/pbc.service" "/etc/systemd/system/pbc.service" &> /dev/null
printf " done!\n" printf " done!\n"
printf ">>> reloading systemd services..." printf "> reloading systemd services..."
systemctl daemon-reload &>>> /dev/null systemctl daemon-reload &> /dev/null
printf " done!\n" printf " done!\n"
fi fi
printf ">>> starting pbc..." printf "> starting pbc..."
systemctl start pbc &>>> /dev/null systemctl start pbc &> /dev/null
printf " done!\n" printf " done!\n"
flash_leds 100 flash_leds 100
printf "${FONT_BOLD}> started pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n" printf "${FONT_BOLD}>>> started pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n"

View file

@ -17,7 +17,7 @@ flash_leds 10
sleep 0.25 sleep 0.25
flash_leds 10 flash_leds 10
printf "> stopping pbc..." printf ">>> stopping pbc..."
systemctl stop pbc &> /dev/null systemctl stop pbc &> /dev/null
printf " done!\n" printf " done!\n"
@ -33,4 +33,4 @@ printf "> " && "/etc/velvettear/scripts/cpu-governor.sh" "powersave"
flash_leds 100 flash_leds 100
printf "${FONT_BOLD}> stopped pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n" printf "${FONT_BOLD}>>> stopped pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n"