mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-25 06:47:18 +00:00
fix bonding and usb-direct
This commit is contained in:
parent
eac0ce955b
commit
3018a7a5d0
@ -25,6 +25,9 @@ case "$1" in
|
||||
start)
|
||||
remote &
|
||||
;;
|
||||
stop)
|
||||
pkill socat
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start}"
|
||||
exit 1
|
||||
|
@ -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 &
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
10
SD_ROOT/wz_mini/usr/bin/netmon.sh
Normal file
10
SD_ROOT/wz_mini/usr/bin/netmon.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user