Skip to content

Commit

Permalink
Fix libptz.so for old versions
Browse files Browse the repository at this point in the history
  • Loading branch information
roleoroleo committed Aug 25, 2022
1 parent 668cfc4 commit f798fcf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/pack_fw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ if [ "$CAMERA_ID" = "GK-200MP2-B" ]; then
echo "done!"
fi

# remove libptz.so if old versions
if [ "$CAMERA_ID" != "GK-200MP2-B" ]; then
echo -n ">>> Removing libptz.so from ${TMP_DIR}... "
rm $TMP_DIR/sonoff-hack/lib/libptz.so || exit 1
echo "done!"
fi

# rename binaries based on camera name
#echo -n ">>> Rename binaries... "
#(cd $TMP_DIR/sonoff-hack/bin/ && cp ptz_$CAMERA_NAME ptz > /dev/null 2>&1)
Expand Down

0 comments on commit f798fcf

Please sign in to comment.