Hi Allen,
Configure static IP by adding below code in
vendor/device_name/product_name/init.product_name.rc
service net_eth0-start /system/bin/sh /init.net.eth0.sh
class core
oneshot
vendor/device_name/product_name/init.net.eth0.sh
ifconfig eth0 IP address netmask up
Hope that helps.
Hello,
Can anyone point me to an example of configuring a network interface with a
static IP/DNS using the system configuration files, not Settings.apk.
Can this be configured via /etc/interfaces?
It looks like I need to create a shell script and call it as a service from
init.rc
Thanks