Add configure_system to allow configure eth0 speed

This commit is contained in:
Kamil Trzcinski 2016-11-06 22:50:03 +01:00
parent 33ffb6c889
commit cb8bbbec6a
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#!/bin/sh
exec 1> /dev/kmsg
exec 2> /dev/kmsg
for line in $(cat /proc/cmdline)
do
key="${line%%=*}"
value="${line##*=}"
if [ "$key" = 'eth0_speed' ] ; then
setprop persist.net.eth0.speed "$value"
fi
done

View file

@ -54,6 +54,7 @@ PRODUCT_COPY_FILES += \
device/softwinner/tulip-chiphd/init.recovery.sun50iw1p1.rc:root/init.recovery.sun50iw1p1.rc \
device/softwinner/tulip-chiphd/ueventd.sun50iw1p1.rc:root/ueventd.sun50iw1p1.rc \
device/softwinner/tulip-chiphd/initialize_disk.sh:root/initialize_disk.sh \
device/softwinner/tulip-chiphd/configure_system.sh:system/bin/configure_system.sh \
device/softwinner/tulip-chiphd/recovery.fstab:recovery.fstab
PRODUCT_COPY_FILES += \

View file

@ -158,6 +158,9 @@ on boot
write /dev/cpuset/system-background/cpus 0-1
write /dev/cpuset/top-app/cpus 0-3
exec u:r:su:s0 root -- /sbin/busybox sh /system/bin/configure_system.sh
exec u:r:su:s0 root -- /sbin/busybox sh /bootloader/rc.local
on charger
insmod nand.ko
mount_all /fstab.sun50iw1p1