Allow to configure eth

This commit is contained in:
Kamil Trzcinski 2016-10-03 11:43:37 +02:00
parent d755e5514c
commit 54e22eaddb

View file

@ -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