netcfg eth0 down e netcfg wlan0 down init.rc

  • Respostas:0
RedBlue
  • Posts no fórum: 1

23/01/2017, 17:21:21 via Web

Prezados colegas, boa tarde!

Preciso desabilitar de forma permanente a eth0 e a wlan0 no Android, gostaria da ajuda de alguém que possa me orientar como proceder.

Quero fazer o oposto disso:

Setting up networking on bootup
Add the following lines in the init.rc:

service ethernet /eth0.sh
Now create a file at the root (or anywhere else, probably in /system/etc but modify the above line accordingly) called eth0.sh, make it executable (chmod +x eth0.sh) and put the following lines in it:

!/system/bin/sh

netcfg eth0 dhcp

setprop net.dns1 8.8.8.8

setprop net.dns2 8.8.4.4

Desde já obrigado,
Marcelo

Responder