mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 13:37:19 +00:00
add netmon for bonding
This commit is contained in:
parent
bbd55e1551
commit
828ca2a5e5
@ -58,3 +58,24 @@ wait_for_icamera() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gateway_supervisor() {
|
||||||
|
count=0
|
||||||
|
while [ true ]; do
|
||||||
|
if ! ping -c1 -W 2 `/opt/wz_mini/bin/busybox ip route | awk '/default/ { print $3 }'` >& /dev/null; then
|
||||||
|
echo "$1: Unable to reach default route via USB Direct Link, ifdown usb0..."
|
||||||
|
count=0
|
||||||
|
ifconfig usb0 down
|
||||||
|
sleep 10
|
||||||
|
else
|
||||||
|
if [[ $con -ne 1 ]]
|
||||||
|
then
|
||||||
|
#echo "Connected."
|
||||||
|
count=1
|
||||||
|
sleep 5
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Sat Aug 6 09:22:16 PM PDT 2022
|
Sat Aug 6 11:05:01 PM PDT 2022
|
||||||
|
@ -3,8 +3,12 @@
|
|||||||
. /opt/wz_mini/wz_mini.conf
|
. /opt/wz_mini/wz_mini.conf
|
||||||
. /opt/wz_mini/etc/rc.common
|
. /opt/wz_mini/etc/rc.common
|
||||||
|
|
||||||
|
|
||||||
if [[ "$ENABLE_USB_DIRECT" == "true" ]]; then
|
if [[ "$ENABLE_USB_DIRECT" == "true" ]]; then
|
||||||
wait_for_wlan_ip $(basename "$0")
|
wait_for_wlan_ip $(basename "$0")
|
||||||
gateway_supervisor $(basename "$0")
|
sleep 5
|
||||||
|
gateway_supervisor $(basename "$0") &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "kill udhcpc extra"
|
||||||
|
kill $(pgrep -f 'udhcpc -i wlan0 -H WyzeCam')
|
||||||
|
|
||||||
|
6
file.chk
6
file.chk
@ -52,7 +52,7 @@ e3034eac02d8eda9902ca9cf89f0a586 SD_ROOT/wz_mini/etc/inittab
|
|||||||
d41d8cd98f00b204e9800998ecf8427e SD_ROOT/wz_mini/etc/rc.local.d/.gitignore
|
d41d8cd98f00b204e9800998ecf8427e SD_ROOT/wz_mini/etc/rc.local.d/.gitignore
|
||||||
99a800721bfe8a1b0e98f039175c12fd SD_ROOT/wz_mini/etc/wz_mini.conf.dist
|
99a800721bfe8a1b0e98f039175c12fd SD_ROOT/wz_mini/etc/wz_mini.conf.dist
|
||||||
4291fb00ec609b5b007ff9b3048e9248 SD_ROOT/wz_mini/etc/hosts
|
4291fb00ec609b5b007ff9b3048e9248 SD_ROOT/wz_mini/etc/hosts
|
||||||
00ca27c2a2da87016b258fa7445debd9 SD_ROOT/wz_mini/etc/rc.common
|
e254c55c7dc9f21009b7387094b1c6b5 SD_ROOT/wz_mini/etc/rc.common
|
||||||
8b5e58acfcbb20034dc4873a08b45fd9 SD_ROOT/wz_mini/etc/profile
|
8b5e58acfcbb20034dc4873a08b45fd9 SD_ROOT/wz_mini/etc/profile
|
||||||
574a0198606cf3a2255843cd1ed7860a SD_ROOT/wz_mini/etc/cron/root
|
574a0198606cf3a2255843cd1ed7860a SD_ROOT/wz_mini/etc/cron/root
|
||||||
2c2df1b9cb603f9c31c46162d6ac307f SD_ROOT/wz_mini/etc/alsa/alsa.conf
|
2c2df1b9cb603f9c31c46162d6ac307f SD_ROOT/wz_mini/etc/alsa/alsa.conf
|
||||||
@ -152,10 +152,10 @@ ac9f3a5d097d25d5d972c3d2ad288df9 SD_ROOT/wz_mini/usr/bin/ucamera_v2
|
|||||||
1e64fdad40c82ecce420f71701ec3d6d SD_ROOT/wz_mini/usr/bin/watch_up.sh
|
1e64fdad40c82ecce420f71701ec3d6d SD_ROOT/wz_mini/usr/bin/watch_up.sh
|
||||||
b339aee882a5d1c943ad08e4282ec3fd SD_ROOT/wz_mini/usr/bin/iCamera-dbg
|
b339aee882a5d1c943ad08e4282ec3fd SD_ROOT/wz_mini/usr/bin/iCamera-dbg
|
||||||
20b061689308b2cee7edf3b9b906bca7 SD_ROOT/wz_mini/usr/bin/ucamera
|
20b061689308b2cee7edf3b9b906bca7 SD_ROOT/wz_mini/usr/bin/ucamera
|
||||||
0eb84a5016aa5a58435e21348abea879 SD_ROOT/wz_mini/usr/bin/netmon.sh
|
071b974925501c4b83f2dd546d90febd SD_ROOT/wz_mini/usr/bin/netmon.sh
|
||||||
3e15a736b79854c35abb7fd4f7207064 SD_ROOT/wz_mini/usr/bin/imp_helper.sh
|
3e15a736b79854c35abb7fd4f7207064 SD_ROOT/wz_mini/usr/bin/imp_helper.sh
|
||||||
580b1b6e91e72b4a4fef7b21d8954403 SD_ROOT/wz_mini/usr/bin/getSensorType
|
580b1b6e91e72b4a4fef7b21d8954403 SD_ROOT/wz_mini/usr/bin/getSensorType
|
||||||
d4f17fc273e3e1624de2977dd6eac28c SD_ROOT/wz_mini/usr/bin/app.ver
|
67a7735d56dbe0bedfc96cad9e74e2b6 SD_ROOT/wz_mini/usr/bin/app.ver
|
||||||
4c780f0455481d106d47d89f0ae04ed5 SD_ROOT/wz_mini/lib/uClibc.tar
|
4c780f0455481d106d47d89f0ae04ed5 SD_ROOT/wz_mini/lib/uClibc.tar
|
||||||
9afeb088e4cbabbe0b04033b560204d0 SD_ROOT/wz_mini/lib/libimp.so
|
9afeb088e4cbabbe0b04033b560204d0 SD_ROOT/wz_mini/lib/libimp.so
|
||||||
4100755cb6cc6e3b76da20c7e3690e16 SD_ROOT/wz_mini/lib/libalog.so
|
4100755cb6cc6e3b76da20c7e3690e16 SD_ROOT/wz_mini/lib/libalog.so
|
||||||
|
Loading…
Reference in New Issue
Block a user