X-Git-Url: https://git.ao2.it/v4l2-persistent-settings.git/blobdiff_plain/139149c9d33407eb909d7d4493e7e3c9d065eb09..bdfefe139bfc2fdd26e753f3245f285129dbc580:/v4l2-settings-restore.sh diff --git a/v4l2-settings-restore.sh b/v4l2-settings-restore.sh index bae3450..b255da8 100755 --- a/v4l2-settings-restore.sh +++ b/v4l2-settings-restore.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # v4l2-settings-restore.sh - restore v4l2 device settings # @@ -15,9 +15,8 @@ [ "$DEBUG" = "true" ] && set -x set -e -source /etc/default/v4l2-persistent-settings || : - -: "${SETTINGS_DIR:=/tmp}" +SETTINGS_DIR="/tmp" +[ -f /etc/default/v4l2-persistent-settings ] && . /etc/default/v4l2-persistent-settings SETTINGS_FILE="${SETTINGS_DIR}/${ID_V4L_PRODUCT}.conf"