ordered into /lib
put all subscripts into lib for readability
This commit is contained in:
14
lib/camera.sh
Normal file
14
lib/camera.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
function CAMERA(){
|
||||
local OUT_FILE=$1
|
||||
snapshot >/dev/null 2>&1 & disown
|
||||
read -p "Funktioniert Kamera? Snapshot öffnet sich - (y/n): " answer
|
||||
#output
|
||||
if [[ "$answer" == [Yy] ]]; then
|
||||
echo -e "Kamera:\t Ja" >>"$OUT_FILE"
|
||||
else
|
||||
echo -e "Kamera:\t Nein" >>"$OUT_FILE"
|
||||
fi
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user