Skip to content

Commit

Permalink
Fix ptz presets list
Browse files Browse the repository at this point in the history
  • Loading branch information
roleoroleo committed Feb 18, 2023
1 parent 00835c4 commit 38b6e53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/www/httpd/cgi-bin/get_configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ if [ "$CONF_TYPE" == "system" ] ; then
printf "\"%s\":\"%s\",\n" "TIMEZONE" "$(cat /etc/TZ)"
fi

HOMEVER=$(cat /home/homever)
printf "\"%s\":\"%s\",\n" "HOMEVER" "$HOMEVER"
if [ "$CONF_TYPE" == "camera" ] ; then
HOMEVER=$(cat /home/homever)
printf "\"%s\":\"%s\",\n" "HOMEVER" "$HOMEVER"
fi

# Empty values to "close" the json
printf "\"%s\":\"%s\"\n" "NULL" "NULL"
Expand Down

0 comments on commit 38b6e53

Please sign in to comment.