// vi system/core/rootdir/init.rc // sh /system/xbin/quagga/sbin/init_in_android-x86_64.sh
scp /opt/share-vm/fedora23server-share/seem_init.sh 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/device/generic/common/
vi device/generic/common/device.mk
// after 31 line, add:
$(if $(wildcard $(PRODUCT_DIR)seem_init.sh),$(PRODUCT_DIR),$(LOCAL_PATH)/)seem_init.sh:system/etc/seem_init.sh
vi system/core/rootdir/init.rc
// at the end of the file, add:
service seem_init /system/etc/seem_init.sh
class main
user root
group root
oneshot
vi system/core/rootdir/init.rc
// at 500 line, in section "on boot", add two lines:
setprop net.tcp.default_init_rwnd 60 (already exist)
chown root shell /system/etc/seem_init.sh
chmod 0550 /system/etc/seem_init.sh
vi system/core/libcutils/fs_config.c
// at 112 line, in section "on boot", add one line:
{ 00550, AID_ROOT, AID_SHELL, 0, "system/etc/init.goldfish.sh" }, (already exist)
{ 00550, AID_ROOT, AID_SHELL, 0, "system/etc/seem_init.sh" },
ref:
http://blog.csdn.net/ztguang/article/details/51921491