then
while read -r setting;
do
- CTRL=$(echo -n "$setting" | cut -d ' ' -f 1)
- VAL=$(echo -n "$setting" | cut -d ' ' -f 2)
+ CTRL=$(echo "$setting" | tr -d '\n' | cut -d ' ' -f 1)
+ VAL=$(echo "$setting" | tr -d '\n' | cut -d ' ' -f 2)
v4l2-ctl -d "$DEVNAME" --set-ctrl "${CTRL}=${VAL}"
done < "$SETTINGS_FILE"
fi