mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-12-22 20:33:33 +00:00
script housekeeping and updates
This commit is contained in:
parent
9783c33d2a
commit
996470ff44
@ -360,6 +360,7 @@ exposure value support
|
||||
|
||||
## Latest Updates
|
||||
|
||||
* 06-12-22: Added additional audio variables for tuning in libcallback, various bug fixes in wz_user. Added `gather_wz_logs.sh` script for users to share debug logs.
|
||||
* 06-07-22: Added support to tune IMP video and audio options in libcallback.
|
||||
* 06-04-22: updated v2 kernel with fix for webcam mode on v2 camera's, working well now. Updated RTMP streaming.
|
||||
* 05-31-22: added kernel and initramfs configs to src dir, fixed old logs deleted on boot, save dmesg to log folder, upgrade script fixes, user selectable usb ethernet kernel modules in config.
|
||||
|
@ -222,7 +222,7 @@ if [[ "$ENABLE_USB_ETH" == "true" ]]; then
|
||||
|
||||
insmod $KMOD_PATH/kernel/drivers/net/usb/usbnet.ko
|
||||
|
||||
for i in $(echo $ENABLE_USB_ETH_MODULES | tr "," "\n")
|
||||
for i in $(echo "$ENABLE_USB_ETH_MODULES" | tr "," "\n")
|
||||
do
|
||||
insmod $KMOD_PATH/kernel/drivers/net/usb/$i.ko
|
||||
done
|
||||
@ -241,7 +241,7 @@ fi
|
||||
|
||||
if [[ "$ENABLE_USB_DIRECT" == "true" ]]; then
|
||||
|
||||
host_macaddr=$(echo $HOSTNAME|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/')
|
||||
HOST_MACADDR=$(echo "$HOSTNAME"|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/')
|
||||
|
||||
if [[ "$V2" == "true" ]]; then
|
||||
echo connect > /sys/devices/platform/jz-dwc2/dwc2/udc/dwc2/soft_connect
|
||||
@ -264,7 +264,7 @@ if [[ "$ENABLE_USB_DIRECT" == "true" ]]; then
|
||||
insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/drivers/usb/gadget/usb_f_ncm.ko
|
||||
fi
|
||||
|
||||
insmod $KMOD_PATH/kernel/drivers/usb/gadget/g_ncm.ko iManufacturer=wz_mini_ncm host_addr=$host_macaddr dev_addr=$USB_DIRECT_MAC_ADDR
|
||||
insmod $KMOD_PATH/kernel/drivers/usb/gadget/g_ncm.ko iManufacturer=wz_mini_ncm host_addr="$HOST_MACADDR" dev_addr="$USB_DIRECT_MAC_ADDR"
|
||||
|
||||
sleep 1
|
||||
|
||||
@ -328,14 +328,14 @@ if [[ "$ENABLE_WIREGUARD" == "true" ]]; then
|
||||
fi
|
||||
|
||||
/opt/wz_mini/bin/busybox ip link add dev wg0 type wireguard
|
||||
/opt/wz_mini/bin/busybox ip address add dev wg0 $WIREGUARD_IPV4
|
||||
/opt/wz_mini/bin/busybox ip address add dev wg0 "$WIREGUARD_IPV4"
|
||||
/opt/wz_mini/bin/wg set wg0 private-key /opt/wz_mini/etc/wireguard/privatekey
|
||||
/opt/wz_mini/bin/busybox ip link set wg0 up
|
||||
fi
|
||||
|
||||
if [[ "$WIREGUARD_PEER_PUBLIC_KEY" != "" ]] && [[ "$WIREGUARD_PEER_ALLOWED_IPS" != "" ]] && [[ "$WIREGUARD_PEER_ENDPOINT" != "" ]] && [[ "$WIREGUARD_PEER_KEEP_ALIVE" != "" ]]; then
|
||||
/opt/wz_mini/bin/wg set wg0 peer $WIREGUARD_PEER_PUBLIC_KEY allowed-ips $WIREGUARD_PEER_ALLOWED_IPS endpoint $WIREGUARD_PEER_ENDPOINT persistent-keepalive $WIREGUARD_PEER_KEEP_ALIVE
|
||||
/opt/wz_mini/bin/busybox ip route add $WIREGUARD_PEER_ALLOWED_IPS dev wg0
|
||||
/opt/wz_mini/bin/wg set wg0 peer "$WIREGUARD_PEER_PUBLIC_KEY" allowed-ips "$WIREGUARD_PEER_ALLOWED_IPS" endpoint "$WIREGUARD_PEER_ENDPOINT" persistent-keepalive "$WIREGUARD_PEER_KEEP_ALIVE"
|
||||
/opt/wz_mini/bin/busybox ip route add "$WIREGUARD_PEER_ALLOWED_IPS" dev wg0
|
||||
fi
|
||||
else
|
||||
echo "wireguard disabled"
|
||||
@ -378,7 +378,7 @@ else
|
||||
fi
|
||||
|
||||
if [[ "$REMOTE_SPOTLIGHT" == "true" ]]; then
|
||||
/opt/wz_mini/bin/socat pty,link=/dev/ttyUSB0,raw tcp:$REMOTE_SPOTLIGHT_HOST:9000 &
|
||||
/opt/wz_mini/bin/socat pty,link=/dev/ttyUSB0,raw tcp:"$REMOTE_SPOTLIGHT_HOST":9000 &
|
||||
echo "remote accessory enabled"
|
||||
else
|
||||
echo "remote accessory disabled"
|
||||
@ -535,7 +535,7 @@ if [[ "$RTSP_LOW_RES_ENABLED" == "true" ]] || [[ "$RTSP_HI_RES_ENABLED" == "true
|
||||
echo "delay RTSP for iCamera"
|
||||
#This delay is required. Sometimes, if you start the rtsp server too soon, live view will break on the app.
|
||||
sleep 5
|
||||
LD_LIBRARY_PATH=/opt/wz_mini/lib /opt/wz_mini/bin/v4l2rtspserver $AUDIO_CH $AUDIO_FMT -U $RTSP_LOGIN:$RTSP_PASSWORD -P $RTSP_PORT $DEVICE1 $DEVICE2 &
|
||||
LD_LIBRARY_PATH=/opt/wz_mini/lib /opt/wz_mini/bin/v4l2rtspserver "$AUDIO_CH $AUDIO_FMT" -U "$RTSP_LOGIN":"$RTSP_PASSWORD" -P "$RTSP_PORT" "$DEVICE1" "$DEVICE2" &
|
||||
fi
|
||||
|
||||
if ([[ "$RTSP_LOW_RES_ENABLED" == "true" ]] || [[ "$RTSP_HI_RES_ENABLED" == "true" ]]) && [[ "$RTMP_STREAM_ENABLED" == "true" ]] && ([[ "$RTSP_LOW_RES_ENABLE_AUDIO" == "true" ]] || [[ "$RTSP_HI_RES_ENABLE_AUDIO" == "true" ]]); then
|
||||
@ -545,7 +545,7 @@ if ([[ "$RTSP_LOW_RES_ENABLED" == "true" ]] || [[ "$RTSP_HI_RES_ENABLED" == "tru
|
||||
echo "delay RTMP server"
|
||||
#Follow the delay from the RTSP server
|
||||
sleep 5
|
||||
/opt/wz_mini/bin/rtmp-stream.sh $RMTP_STREAM_SERVICE $RTMP_AUDIO
|
||||
/opt/wz_mini/bin/rtmp-stream.sh "$RMTP_STREAM_SERVICE" "$RTMP_AUDIO"
|
||||
fi
|
||||
|
||||
hostname_set
|
||||
|
6
file.chk
6
file.chk
@ -2,8 +2,8 @@
|
||||
d41d8cd98f00b204e9800998ecf8427e SD_ROOT/wz_mini/mnt/.gitignore
|
||||
34c6a4c3a941ff2becd9f487826d7692 SD_ROOT/wz_mini/etc/uvc.config
|
||||
58d3a10a80422e3aa1b49b046e17db5c SD_ROOT/wz_mini/etc/init.d/wz_cam.sh
|
||||
0f0cb8cbbf7007cda59dc684c37d185f SD_ROOT/wz_mini/etc/init.d/v3_init.sh
|
||||
00b7a26dbaefc7cf0872f534fc83f50a SD_ROOT/wz_mini/etc/init.d/wz_user.sh
|
||||
4973a55d6eecc6f3559f42651ec2bee6 SD_ROOT/wz_mini/etc/init.d/v3_init.sh
|
||||
0587f1c519d449820a77a0c5c050a131 SD_ROOT/wz_mini/etc/init.d/wz_user.sh
|
||||
86082f8c1b7de18463731372bac630d1 SD_ROOT/wz_mini/etc/init.d/wz_post.sh
|
||||
e3034eac02d8eda9902ca9cf89f0a586 SD_ROOT/wz_mini/etc/inittab
|
||||
840aa9c26726201f7cffbf001bee193a SD_ROOT/wz_mini/etc/uvc_jxf22.config
|
||||
@ -173,5 +173,5 @@ f1bf61ecda401f1a70f8942a27fa96e2 SD_ROOT/wz_mini/lib/modules/3.10.14__isvp_swan
|
||||
14865a6e2e2df87a8362c6f20377a934 SD_ROOT/wz_mini/lib/libtinyalsa.so.2
|
||||
bd383994491e4bdca81788c168feb2eb SD_ROOT/wz_mini/lib/libasound.so.2
|
||||
f6f0d5a9ebd916de6bdb9695067809ae SD_ROOT/wz_mini/lib/libaudioProcess.so
|
||||
addca995c1095a64615ec5dcb32dca63 SD_ROOT/wz_mini/wz_mini.conf
|
||||
2e2d5c1ebdcc16da6852e9cdd3ffc66c SD_ROOT/wz_mini/wz_mini.conf
|
||||
d41d8cd98f00b204e9800998ecf8427e SD_ROOT/wz_mini/tmp/.gitignore
|
||||
|
Loading…
Reference in New Issue
Block a user