mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-09 15:08:21 +00:00
update usb ethernet script
This commit is contained in:
parent
2869ddce40
commit
5ad7674ada
@ -26,8 +26,8 @@ if [[ "$ENABLE_USB_ETH" == "true" ]]; then
|
||||
/media/mmc/wz_mini/bin/busybox ip link set eth0 name wlan0
|
||||
|
||||
ifconfig wlan0 up
|
||||
udhcpc -i wlan0
|
||||
/media/mmc/wz_mini/bin/dropbearmulti dropbear -R -m &
|
||||
pkill udhcpc
|
||||
udhcpc -i wlan0 -H WyzeCam -p /var/run/udhcpc.pid -b
|
||||
sleep 5
|
||||
mount -o bind /media/mmc/wz_mini/bin/wpa_cli.sh /bin/wpa_cli
|
||||
else
|
||||
@ -45,8 +45,9 @@ if [[ "$ENABLE_USB_DIRECT" == "true" ]]; then
|
||||
/media/mmc/wz_mini/bin/busybox ip link set usb0 name wlan0
|
||||
|
||||
ifconfig wlan0 up
|
||||
udhcpc -i wlan0
|
||||
/media/mmc/wz_mini/bin/dropbearmulti dropbear -R -m &
|
||||
pkill udhcpc
|
||||
udhcpc -i wlan0 -H WyzeCam -p /var/run/udhcpc.pid -b
|
||||
|
||||
sleep 5
|
||||
mount -o bind /media/mmc/wz_mini/bin/wpa_cli.sh /bin/wpa_cli
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user