Audio + Drives test
added stereo sound and drives check
This commit is contained in:
18
test.sh
Normal file → Executable file
18
test.sh
Normal file → Executable 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."
|
||||
|
||||
Reference in New Issue
Block a user