From 6ce377c73ecb7d5e62a7546132b7ab70d771f5d2 Mon Sep 17 00:00:00 2001 From: David P Date: Tue, 3 Nov 2020 14:14:40 -0300 Subject: sync with archiso v49 Imported changes: cc169d7 (HEAD -> master, origin/master, origin/HEAD) configs/releng/packages.x86_64: add fatresize, gpart and tmux 40ae3ba (tag: v49) Set syslinux bootloader timeout to 15s ee6c5fa Set bootloader timeouts to 15s 9f16862 Configure the image type and image creation options using profiles (#54) e369ade fix a typo, add myself in AUTHORS.rst e748a77 Add accessibility support based on option flag 8bb3e8c Fix linter errors in livecd-sound 6a39300 implement accessibility support in archiso 6820f2c Add modconf to HOOKS array in mkinitcpio.conf 3caa30f configs/releng/packages.x86_64: add squashfs-tools and udftools 1bd944e Remove build.sh support from profiles and mkarchiso bff3676 (origin/issues/38) Add documentation about how to create profiles Extra changes: * remove talkingparabola profile, it's no longer required TODO: * add braille support in OpenRC profiles Signed-off-by: David P --- .../talkingparabola/airootfs/usr/bin/pick-a-card | 57 ---------------------- 1 file changed, 57 deletions(-) delete mode 100755 configs/talkingparabola/airootfs/usr/bin/pick-a-card (limited to 'configs/talkingparabola/airootfs/usr/bin/pick-a-card') diff --git a/configs/talkingparabola/airootfs/usr/bin/pick-a-card b/configs/talkingparabola/airootfs/usr/bin/pick-a-card deleted file mode 100755 index 10f2f79..0000000 --- a/configs/talkingparabola/airootfs/usr/bin/pick-a-card +++ /dev/null @@ -1,57 +0,0 @@ -#!/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() { - echo $# -} - -is_numeric() { - local str=$1 - expr "$str" : '[[:digit:]]\+$' > /dev/null 2>&1 -} - -set_default_card() { - local card=$1 - sed -e "s/%card%/$card/g" < /usr/share/livecd-sound/asound.conf.in \ - > /etc/asound.conf -} - -play_on_card() { - local card=$1 file=$2 - aplay "-Dplughw:$card,0" "$file" -} - -set -f -usable_cards="$(list_non_pcsp_cards)" -num_usable_cards=$(nwords "$usable_cards") - -if [ "$num_usable_cards" -eq 1 ]; then - exit 0 -fi - -for card in $usable_cards; do - if ! is_numeric "$card"; then - continue - fi - play_on_card "$card" /usr/share/livecd-sound/sounds/pick-a-card.wav& -done -wait -sleep 1 -for card in $usable_cards; do - if ! is_numeric "$card"; then - continue - fi - play_on_card "$card" /usr/share/livecd-sound/sounds/beep.wav - if read -rt 10; then - set_default_card "$card" - break - fi -done -- cgit v1.2.2