Permanently modify routing table (to make connection to OBD dongle hotspot via ethernet wifi bridge working) #250
-
I would like to modify the routing table, because i have an ethernet -> wifi bridge that i use to access my OBD dongle wifi simultaneously with tethering via usb. If i don't do this access to eth0 (the ethernet port) will be lost because upon connecting the usb tethering device. The connection introduces new routing rules that effectively block access to the ethernet network. I know there is root access via adb with which i was able to verify if it works. Upon connecting to usb tethering i can use the following commands to fix routing and enable access to my OBD dongle wifi: ip addr add 192.168.4.2/24 dev eth0 I need to find a way to automate this process (without the need for adb) and i was thinking about a cronjob just repeatedly running every few seconds. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Figured it out myself.
installed two files /etc/init/custom.rc
/system/bin/custom.sh
and gave the correct access rights to those files:
This does the job. Not sure if everything is needed as posted above. Got the solution from: |
Beta Was this translation helpful? Give feedback.
Figured it out myself.
I just remounted the system partition with
installed two files
/etc/init/custom.rc
/system/bin/custom.sh
and gave the correct access rights to those files: