I made some aliases to quickly reverse tether.
alias t='r && sh && n'
alias n='netcfg rndis0 dhcp'
alias sh='ad shell'
alias r='ad kill-server && ad start-server'
alias ad='adb'
I want to enter t (which turns on reverse tethering) but the aliased command doesnt do anything past sh
How to automate this better?
(I guess its because its not in first shell anymore but android adb shell)
UPDATE: I edited the .bashrc as answered by Stephen Schrauger but the command enters me into adb shell and when i disconnect usb cable I get netcfg: command not found
The aliases are now:
alias t='r && sz $n'
n='netcfg rndis0 dhcp'
alias sz='ad shell'
alias r='ad kill-server && ad start-server'
alias ad='adb'
What is wrong now?
UPDATE2 moved here:Help with this ADB REVERSE Tethering Script?