diff --git a/scripts/pack_fw.sh b/scripts/pack_fw.sh index f1763e4..89d9dde 100755 --- a/scripts/pack_fw.sh +++ b/scripts/pack_fw.sh @@ -119,9 +119,9 @@ echo -n ">>> Copying files from the build directory to ${TMP_DIR}... " cp -R $BUILD_DIR/sonoff-hack/* $TMP_DIR/sonoff-hack || exit 1 echo "done!" -# create symlinks if necessary -echo -n ">>> Create symlinks... " -(cd $TMP_DIR/sonoff-hack/bin/ && ln -s ptz_$CAMERA_NAME ptz > /dev/null 2>&1) +# 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) echo "done!" # adding defaults