mirror of
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git
synced 2025-09-03 13:12:44 +02:00
Make image flip persist on reboot (#569)
* Basic keep image flip at reboot settings page could be improved * Basic keep image flip at reboot settings page could be improved
This commit is contained in:
@@ -77,6 +77,13 @@ start()
|
||||
PORT="-P $PORT"
|
||||
fi
|
||||
|
||||
## FLIP
|
||||
if [ "$FLIP" == "ON" ]; then
|
||||
/system/sdcard/bin/setconf -k f -v 1
|
||||
elif [ "$FLIP" == "OFF" ]; then
|
||||
/system/sdcard/bin/setconf -k f -v 0
|
||||
fi
|
||||
|
||||
echo "================== START ===============" >> "$LOGPATH"
|
||||
echo "/system/sdcard/bin/v4l2rtspserver-master $RTSPH264OPTS $AUDIOPARAM $VIDEOFORMAT $CREDENTIAL $PORT" >> "$LOGPATH"
|
||||
/system/sdcard/bin/v4l2rtspserver-master $RTSPH264OPTS $AUDIOPARAM $VIDEOFORMAT $CREDENTIAL $PORT 2>> "$LOGPATH" >> "$LOGPATH" &
|
||||
|
@@ -77,6 +77,13 @@ start()
|
||||
PORT="-P $PORT"
|
||||
fi
|
||||
|
||||
## FLIP
|
||||
if [ "$FLIP" == "ON" ]; then
|
||||
/system/sdcard/bin/setconf -k f -v 1
|
||||
elif [ "$FLIP" == "OFF" ]; then
|
||||
/system/sdcard/bin/setconf -k f -v 0
|
||||
fi
|
||||
|
||||
echo "================== START ===============" >> "$LOGPATH"
|
||||
echo "/system/sdcard/bin/v4l2rtspserver-master -fMJPG $RTSPMJPEGOPTS $AUDIOPARAM $VIDEOFORMAT $CREDENTIAL $PORT" >> "$LOGPATH"
|
||||
/system/sdcard/bin/v4l2rtspserver-master -fMJPG $RTSPMJPEGOPTS $AUDIOPARAM $VIDEOFORMAT $CREDENTIAL $PORT 2>> "$LOGPATH" >> "$LOGPATH" &
|
||||
|
Reference in New Issue
Block a user