Reorga of functions
moved all functions into files Redid RAM to be more useable
This commit is contained in:
20
speaker.sh
20
speaker.sh
@@ -1,13 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
audacious ./stereo_test.mp3 >/dev/null 2>&1 & disown
|
||||
function SPEAKER(){
|
||||
local OUT_FILE=$1
|
||||
audacious ./stereo_test.mp3 >/dev/null 2>&1 & disown
|
||||
read -p "Funktioniert Sound? Audacios öffnet sich - (y/n): " answer
|
||||
if [[ "$answer" == [Yy] ]]; then
|
||||
echo -e "Speaker:\t Ja" >>"$OUT_FILE"
|
||||
else
|
||||
echo -e "Speaker:\t Nein" >>"$OUT_FILE"
|
||||
fi
|
||||
|
||||
read -p "Funktioniert Sound? Audacios öffnet sich - (y/n): " answer
|
||||
|
||||
if [[ "$answer" == [Yy] ]]; then
|
||||
return 0
|
||||
elif [[ "$answer" == [Nn] ]]; then
|
||||
return 1
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user