mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-12-23 12:43:35 +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
|
/media/mmc/wz_mini/bin/busybox ip link set eth0 name wlan0
|
||||||
|
|
||||||
ifconfig wlan0 up
|
ifconfig wlan0 up
|
||||||
udhcpc -i wlan0
|
pkill udhcpc
|
||||||
/media/mmc/wz_mini/bin/dropbearmulti dropbear -R -m &
|
udhcpc -i wlan0 -H WyzeCam -p /var/run/udhcpc.pid -b
|
||||||
sleep 5
|
sleep 5
|
||||||
mount -o bind /media/mmc/wz_mini/bin/wpa_cli.sh /bin/wpa_cli
|
mount -o bind /media/mmc/wz_mini/bin/wpa_cli.sh /bin/wpa_cli
|
||||||
else
|
else
|
||||||
@ -45,8 +45,9 @@ if [[ "$ENABLE_USB_DIRECT" == "true" ]]; then
|
|||||||
/media/mmc/wz_mini/bin/busybox ip link set usb0 name wlan0
|
/media/mmc/wz_mini/bin/busybox ip link set usb0 name wlan0
|
||||||
|
|
||||||
ifconfig wlan0 up
|
ifconfig wlan0 up
|
||||||
udhcpc -i wlan0
|
pkill udhcpc
|
||||||
/media/mmc/wz_mini/bin/dropbearmulti dropbear -R -m &
|
udhcpc -i wlan0 -H WyzeCam -p /var/run/udhcpc.pid -b
|
||||||
|
|
||||||
sleep 5
|
sleep 5
|
||||||
mount -o bind /media/mmc/wz_mini/bin/wpa_cli.sh /bin/wpa_cli
|
mount -o bind /media/mmc/wz_mini/bin/wpa_cli.sh /bin/wpa_cli
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user