android_device_allwinner-full/tulip-chiphd/configure_system.sh
2016-11-06 22:50:03 +01:00

13 lines
218 B
Bash

#!/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