9ce6bbd92a
* new init system * update new init scripts * update checksum * fix broken audio promps with new init scripts * fix debug/upgrade mode * fix bonding and eth0 hw addr * add checksum * fix bonding setup * add rtsp auth disable * adjust network init scripts path * recreated repo and re added cron scripts (#211) * recreated repo and re added cron scripts * rename cron script and move it to the right folder. * Delete .vs directory remove .vs directory * add deubg message to bonding rc.d script * add crontab variable to wz_mini.conf * fix mp4write * add syslog debug feature * fix syslog init blocking * fix syslog save function * increase imp_helper rerun delay * update init scripts * fix bonding and usb-direct * update checksum * add netmon for bonding * fix supervisor function * update model detection * fix debugging injection on T20 devices Co-authored-by: sideup66 <47700565+sideup66@users.noreply.github.com>
39 خطوط
733 B
Bash
39 خطوط
733 B
Bash
#!/bin/sh
|
|
### BEGIN INIT INFO
|
|
# Provides:
|
|
# Short-Description: MP4WRITE Support
|
|
# Description: Prevent system trashing with mp4write support provided by libcallback, temporary video files are written direct to media instead of /tmp
|
|
### END INIT INFO
|
|
|
|
. /opt/wz_mini/etc/rc.common
|
|
. /opt/wz_mini/wz_mini.conf
|
|
|
|
mp4write() {
|
|
|
|
wait_for_icamera
|
|
|
|
echo "#####$(basename "$0")#####"
|
|
|
|
if [[ "$ENABLE_MP4_WRITE" == "true" ]]; then
|
|
if [ -f /opt/wz_mini/tmp/.T20 ]; then
|
|
echo "mp4_write is not supported on T20"
|
|
else
|
|
/opt/wz_mini/bin/cmd mp4write on > /dev/null
|
|
echo "mp4_write enabled"
|
|
fi
|
|
else
|
|
echo "mp4_write disabled"
|
|
fi
|
|
}
|
|
|
|
case "$1" in
|
|
start)
|
|
mp4write &
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|