From 28d8e3994fb5aadd26aedfcc54b9ef168abb4010 Mon Sep 17 00:00:00 2001 From: velvettear Date: Fri, 25 Mar 2022 15:20:46 +0100 Subject: [PATCH] fixed formatting --- start-pedalboard.sh | 28 ++++++++++++++-------------- stop-pedalboard.sh | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/start-pedalboard.sh b/start-pedalboard.sh index a60d6d3..90d3b29 100755 --- a/start-pedalboard.sh +++ b/start-pedalboard.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# author: Daniel Sommer >> +# author: Daniel Sommer # license: MIT set -e @@ -9,7 +9,7 @@ set -e 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" @@ -17,34 +17,34 @@ flash_leds 10 sleep 0.25 flash_leds 10 -printf ">>> " && "/etc/velvettear/scripts/cpu-governor.sh" "performance" +printf "> " && "/etc/velvettear/scripts/cpu-governor.sh" "performance" -printf ">>> starting MODEP..." -patchbox module activate modep &>>> /dev/null +printf "> starting MODEP..." +patchbox module activate modep &> /dev/null printf " done!\n" up="$(journalctl -u modep-touchosc2midi | tail -n1)" 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 up="$(journalctl -u modep-touchosc2midi | tail -n1)" 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 if [[ ! -e "/etc/systemd/system/pbc.service" ]]; then - printf ">>> symlinking \'pbc.service\' to \'/etc/systemd/system\'..." - ln -s "/opt/pbc/pbc.service" "/etc/systemd/system/pbc.service" &>>> /dev/null + printf "> symlinking \'pbc.service\' to \'/etc/systemd/system\'..." + ln -s "/opt/pbc/pbc.service" "/etc/systemd/system/pbc.service" &> /dev/null printf " done!\n" - printf ">>> reloading systemd services..." - systemctl daemon-reload &>>> /dev/null + printf "> reloading systemd services..." + systemctl daemon-reload &> /dev/null printf " done!\n" fi -printf ">>> starting pbc..." -systemctl start pbc &>>> /dev/null +printf "> starting pbc..." +systemctl start pbc &> /dev/null printf " done!\n" flash_leds 100 -printf "${FONT_BOLD}> started pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n" \ No newline at end of file +printf "${FONT_BOLD}>>> started pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n" \ No newline at end of file diff --git a/stop-pedalboard.sh b/stop-pedalboard.sh index e372c29..ec2dc1a 100755 --- a/stop-pedalboard.sh +++ b/stop-pedalboard.sh @@ -17,7 +17,7 @@ flash_leds 10 sleep 0.25 flash_leds 10 -printf "> stopping pbc..." +printf ">>> stopping pbc..." systemctl stop pbc &> /dev/null printf " done!\n" @@ -33,4 +33,4 @@ printf "> " && "/etc/velvettear/scripts/cpu-governor.sh" "powersave" flash_leds 100 -printf "${FONT_BOLD}> stopped pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n" \ No newline at end of file +printf "${FONT_BOLD}>>> stopped pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n" \ No newline at end of file