Cleanup: Trimmed trailing whitespace

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel 2021-12-08 20:33:44 +01:00
parent fee20ded85
commit 6c8a9df33f
No known key found for this signature in database
GPG Key ID: F465B83ACBA45639
6 changed files with 19 additions and 19 deletions

View File

@ -3,10 +3,10 @@
#### Configparser library
#### webcamd - A webcam Service for multiple Cams and Stream Services.
####
####
#### written by Stephan Wendel aka KwadFan
#### Copyright 2021
#### https://github.com/mainsail-crew/crowsnest
#### https://github.com/mainsail-crew/crowsnest
####
#### This File is distributed under GPLv3
####
@ -62,4 +62,4 @@ function configured_cams {
cams="$(crudini --existing=file --get "${cfg}" | \
sed '/webcamd/d;s/cam//')"
echo "${cams}"
}
}

View File

@ -3,10 +3,10 @@
#### Core library
#### webcamd - A webcam Service for multiple Cams and Stream Services.
####
####
#### written by Stephan Wendel aka KwadFan
#### Copyright 2021
#### https://github.com/mainsail-crew/crowsnest
#### https://github.com/mainsail-crew/crowsnest
####
#### This File is distributed under GPLv3
####
@ -34,7 +34,7 @@ function err_exit {
if [ -n "$(jobs -pr)" ]; then
kill $(jobs -pr)
fi
exit 1
exit 1
}
function shutdown {

View File

@ -3,10 +3,10 @@
#### Hardware Handling library
#### webcamd - A webcam Service for multiple Cams and Stream Services.
####
####
#### written by Stephan Wendel aka KwadFan
#### Copyright 2021
#### https://github.com/mainsail-crew/crowsnest
#### https://github.com/mainsail-crew/crowsnest
####
#### This File is distributed under GPLv3
####
@ -52,5 +52,5 @@ function detect_raspicam {
avail="0"
fi
echo "${avail}"
}
}

View File

@ -3,10 +3,10 @@
#### Logging library
#### webcamd - A webcam Service for multiple Cams and Stream Services.
####
####
#### written by Stephan Wendel aka KwadFan
#### Copyright 2021
#### https://github.com/mainsail-crew/crowsnest
#### https://github.com/mainsail-crew/crowsnest
####
#### This File is distributed under GPLv3
####
@ -47,14 +47,14 @@ function log_msg {
local msg logfile prefix
msg="${1}"
prefix="$(date +'[%D %T]') webcamd:"
#Workaround sed ~ to BASH VAR $HOME
#Workaround sed ~ to BASH VAR $HOME
logfile="$(get_param webcamd log_path | sed "s#^~#$HOME#gi")"
#Workaround: Make Dir if not exist
if [ ! -d "${logfile}" ]; then
mkdir -p "$(dirname "${logfile}")"
fi
echo -e "${prefix} ${msg}" | tr -s ' ' >> "${logfile}" 2>&1
echo -e "${msg}" | logger -t webcamd
echo -e "${msg}" | logger -t webcamd
}
#call '| log_output "<prefix>"'
@ -84,7 +84,7 @@ function print_cfg {
function print_cams {
local count raspicam total debug
debug="$(get_param "webcamd" debug_log 2> /dev/null)"
count="$(find /dev/v4l/by-id/ 2> /dev/null | sed '1d;1~2d' | wc -l)"
count="$(find /dev/v4l/by-id/ 2> /dev/null | sed '1d;1~2d' | wc -l)"
total="$((count+$(detect_raspicam)))"
if [ "${total}" -eq 0 ]; then
log_msg "ERROR: No usable Cameras Found. Stopping $(basename "$0")."

View File

@ -3,10 +3,10 @@
#### message library
#### webcamd - A webcam Service for multiple Cams and Stream Services.
####
####
#### written by Stephan Wendel aka KwadFan
#### Copyright 2021
#### https://github.com/mainsail-crew/crowsnest
#### https://github.com/mainsail-crew/crowsnest
####
#### This File is distributed under GPLv3
####
@ -31,4 +31,4 @@ function help_msg {
echo -e "\n\t\t-h Prints this help."
echo -e "\n\t\t-v Prints Version of webcamd."
echo -e "\n\t\t-c </path/to/configfile>\n\t\t\tPath to your webcam.conf\n"
}
}

View File

@ -3,10 +3,10 @@
#### Watchdog
#### webcamd - A webcam Service for multiple Cams and Stream Services.
####
####
#### written by Stephan Wendel aka KwadFan
#### Copyright 2021
#### https://github.com/mainsail-crew/crowsnest
#### https://github.com/mainsail-crew/crowsnest
####
#### This File is distributed under GPLv3
####