fix bonding and usb-direct

This commit is contained in:
Alfonso Gamboa 2022-08-06 21:22:05 -07:00
parent eac0ce955b
commit 3018a7a5d0
3 changed files with 16 additions and 0 deletions

View File

@ -25,6 +25,9 @@ case "$1" in
start)
remote &
;;
stop)
pkill socat
;;
*)
echo "Usage: $0 {start}"
exit 1

View File

@ -78,6 +78,9 @@ bonding_setup() {
mount -o bind /opt/wz_mini/bin/wpa_cli.sh /bin/wpa_cli
fi
echo "Run network monitor for USB Direct"
/opt/wz_mini/usr/bin/netmon.sh &
}

View File

@ -0,0 +1,10 @@
#!/bin/sh
. /opt/wz_mini/wz_mini.conf
. /opt/wz_mini/etc/rc.common
if [[ "$ENABLE_USB_DIRECT" == "true" ]]; then
wait_for_wlan_ip $(basename "$0")
gateway_supervisor $(basename "$0")
fi