Audio + Drives test

added stereo sound and drives check
This commit is contained in:
2026-04-28 16:09:06 +02:00
parent e10d589177
commit fa512fd896
4 changed files with 52 additions and 36 deletions

18
test.sh Normal file → Executable file
View File

@@ -3,8 +3,8 @@
DIR="${BASH_SOURCE%/*}"
DESKTOP_PATH=$(xdg-user-dir DESKTOP)
OUT="$DESKTOP_PATH/info.txt"
OUT="$DESKTOP_PATH/device_info.txt"
source drives.sh
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
@@ -48,6 +48,15 @@ else
fi
. "$DIR/speaker.sh"
retval=$?
if [ "$retval" == 0 ]
then
echo -e "Speaker:\t Ja" >>"$OUT"
else
echo -e "Speaker:\t Nein" >>"$OUT"
fi
. "$DIR/wifi.sh"
retval=$?
if [ "$retval" == 0 ] ; then
@@ -67,6 +76,11 @@ else
fi
#clear
drives $OUT
cat "$OUT"
echo "Fertig."