Allow to configure eth
This commit is contained in:
parent
d755e5514c
commit
54e22eaddb
1 changed files with 17 additions and 1 deletions
|
@ -219,3 +219,19 @@ service p2p_supplicant /system/bin/wpa_supplicant \
|
|||
socket wpa_wlan0 dgram 660 wifi wifi
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:persist.net.eth0.speed=auto
|
||||
exec u:r:su:s0 root -- /system/bin/ifconfig eth0 up
|
||||
exec u:r:su:s0 root -- /system/bin/ethtool -s eth0 autoneg on
|
||||
|
||||
on property:persist.net.eth0.speed=1000
|
||||
exec u:r:su:s0 root -- /system/bin/ifconfig eth0 up
|
||||
exec u:r:su:s0 root -- /system/bin/ethtool -s eth0 speed 1000 duplex full
|
||||
|
||||
on property:persist.net.eth0.speed=100
|
||||
exec u:r:su:s0 root -- /system/bin/ifconfig eth0 up
|
||||
exec u:r:su:s0 root -- /system/bin/ethtool -s eth0 speed 100 duplex full
|
||||
|
||||
on property:persist.net.eth0.speed=10
|
||||
exec u:r:su:s0 root -- /system/bin/ifconfig eth0 up
|
||||
exec u:r:su:s0 root -- /system/bin/ethtool -s eth0 speed 10 duplex full
|
||||
|
|
Loading…
Reference in a new issue