diff options
Diffstat (limited to 'configs/talkingparabola/airootfs/usr/bin')
-rwxr-xr-x | configs/talkingparabola/airootfs/usr/bin/livecd-alsa-unmuter | 4 | ||||
-rwxr-xr-x | configs/talkingparabola/airootfs/usr/bin/pick-a-card | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/configs/talkingparabola/airootfs/usr/bin/livecd-alsa-unmuter b/configs/talkingparabola/airootfs/usr/bin/livecd-alsa-unmuter index 6de05a0..2a0d814 100755 --- a/configs/talkingparabola/airootfs/usr/bin/livecd-alsa-unmuter +++ b/configs/talkingparabola/airootfs/usr/bin/livecd-alsa-unmuter @@ -1,7 +1,11 @@ #!/bin/bash +# +# SPDX-License-Identifier: GPL-3.0-or-later # Properly initialize the sound card so that we have audio at boot. # This script is released under the GNU General Public License. + +# shellcheck disable=SC1091 source /usr/share/livecd-sound/functions preinit_levels all diff --git a/configs/talkingparabola/airootfs/usr/bin/pick-a-card b/configs/talkingparabola/airootfs/usr/bin/pick-a-card index 7f469e8..10f2f79 100755 --- a/configs/talkingparabola/airootfs/usr/bin/pick-a-card +++ b/configs/talkingparabola/airootfs/usr/bin/pick-a-card @@ -1,9 +1,12 @@ #!/bin/bash +# +# SPDX-License-Identifier: GPL-3.0-or-later # If there are multiple usable sound cards, prompt the user to choose one, # using auditory feedback. # This script is released under the GNU General Public License. +# shellcheck disable=SC1091 source /usr/share/livecd-sound/functions nwords() { @@ -12,7 +15,7 @@ nwords() { is_numeric() { local str=$1 - expr match "$str" '[[:digit:]]\+$' > /dev/null 2>&1 + expr "$str" : '[[:digit:]]\+$' > /dev/null 2>&1 } set_default_card() { @@ -28,7 +31,7 @@ play_on_card() { set -f usable_cards="$(list_non_pcsp_cards)" -num_usable_cards=$(nwords $usable_cards) +num_usable_cards=$(nwords "$usable_cards") if [ "$num_usable_cards" -eq 1 ]; then exit 0 @@ -47,7 +50,7 @@ for card in $usable_cards; do continue fi play_on_card "$card" /usr/share/livecd-sound/sounds/beep.wav - if read -t 10; then + if read -rt 10; then set_default_card "$card" break fi |