使用三代机升级工具对设备开启dhcp功能,在相机后台产生的变化是:
1: cd /system/init/
2: cat app_init.sh
在 /system/init/app_init.sh 脚本中对前几行进行注释及增加一行信息:
修改前:
#!/bin/sh
ifconfig eth0 192.168.103.77
netmask 255.255.255.0
ifconfig eth0 down
ifconfig eth0 hw ether 00:10:c9:a3:82:bf
ifconfig eth0 up
ifconfig eth0 netmask 255.255.255.0
route add default gw 192.168.103.1
cp /system/init/setir /tmp/
echo 1 > /proc/sys/vm/overcommit_memory
/system/init/start.sh
/mnt/updatemv.sh
修改后:
#!/bin/sh
#this file is written by IVE_daemon. Fri Sep 11 15:25:11 UTC 2020
#ifconfig eth0
#netmask 255.255.255.0
#ifconfig eth0 down
#ifconfig eth0 hw ether
#ifconfig eth0 up
#ifconfig eth0 netmask 255.255.255.0
#
cp /system/init/setir /tmp/
echo 1 > /proc/sys/vm/overcommit_memory
/system/init/start.sh
/mnt/updatemv.sh
udhcpc
网友评论