Browse Source

subnet changes every boot so won't work

Daniel Sheffield 2 days ago
parent
commit
2ccc8348c1

+ 0 - 1
android-usb-vnc/system/etc/udev/rules.d/99-android-usb-remote.rules

@@ -1,4 +1,3 @@
-SUBSYSTEM=="net", KERNEL=="usb*", SUBSYSTEMS=="usb", DRIVERS=="rndis_host" RUN+="/usr/local/bin/android_usb_remote.sh %k"
 ACTION=="add", SUBSYSTEM=="net", KERNEL=="usb0", TAG+="systemd", ENV{SYSTEMD_WANTS}="login-manager@usb0.service"
 ACTION=="remove", SUBSYSTEM=="net", KERNEL=="usb0", RUN+="/usr/bin/systemctl stop x11vnc@usb0.service xvfb@usb0.service login-manager@usb0.service"
 

+ 0 - 12
android-usb-vnc/system/usr/local/bin/android_usb_remote.sh

@@ -1,12 +0,0 @@
-#!/bin/bash
-USB_IFACE="$1"
-#IP_ADDR="10.114.98.150" # actually this network is managed by DHCP on android side
-IP_ADDR="10.140.76.150" # actually this network is managed by DHCP on android side
-                        # but we might get away with it being static
-                        # has to be static as otherwise the address changes each
-                        # time USB tethering is activated
-
-ip addr flush dev "$USB_IFACE"
-ip addr add "$IP_ADDR/24" dev "$USB_IFACE"
-ip link set "$USB_IFACE" up
-