View Single Post
Old 09-10-2018, 08:30 AM   #7
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 477
Karma: 445678
Join Date: Feb 2010
Device: Too many..
I tried this "all-in-one" script to cater to all the 9 combinations of 3 kindle models(or even 3 same model kindles) and 3 USB ports on the PC:
Code:
for i in 244 245 246
  do
    for j in enp0s29f7u1 enp0s29f7u2 enp0s29f7u4
      do
        sudo ip address add 192.168.15.201 peer 192.168.15.$i dev $j
      done
  done
But, both here as well as in a single port/single kindle version of the script, a prior manual disconnect is required, to stop the PC's network from futilely trying to connect to a non-existent ethernet network. If this is not done, it is possible to login to the kindle, but the ssh session soon freezes and becomes unresponsive.

Of course, there are always some error messages referring to the 2 unconnected USB ports, but these don't seem to do any other harm.

Any script possible to automate the manual disconnect? I tried sudo ifconfig enp0s29f7u1 down, but it didn't work. Trying to login to the kindle gave a message that no route was found.
nasser is offline   Reply With Quote