projects
/
v4l2-persistent-settings.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the shell scripts more standard compliant
[v4l2-persistent-settings.git]
/
v4l2-settings-save.sh
diff --git
a/v4l2-settings-save.sh
b/v4l2-settings-save.sh
index
0c519d4
..
246290e
100755
(executable)
--- a/
v4l2-settings-save.sh
+++ b/
v4l2-settings-save.sh
@@
-1,4
+1,4
@@
-#!/bin/
ba
sh
+#!/bin/sh
#
# v4l2-settings-save.sh - save v4l2 device settings
#
#
# v4l2-settings-save.sh - save v4l2 device settings
#
@@
-17,9
+17,8
@@
set -e
DEVNAME="$1"
DEVNAME="$1"
-source /etc/default/v4l2-persistent-settings || :
-
-: "${SETTINGS_DIR:=/tmp}"
+SETTINGS_DIR="/tmp"
+[ -f /etc/default/v4l2-persistent-settings ] && . /etc/default/v4l2-persistent-settings
: "${ID_V4L_PRODUCT:=$(v4l2-ctl -d "$DEVNAME" --info | grep "Card type" | cut -d ':' -f 2 | sed 's/^[[:space:]]//' | tr -d '\n')}"
: "${ID_V4L_PRODUCT:=$(v4l2-ctl -d "$DEVNAME" --info | grep "Card type" | cut -d ':' -f 2 | sed 's/^[[:space:]]//' | tr -d '\n')}"