blob: 79fac893ad5091d380119aa05afb25f9cf14e59a [file] [log] [blame]
#!/bin/sh
#/etc/init.d/mdev start
#sh /etc/init.d/fscheck.sh
#/etc/init.d/nvserver start
#nv set ver_mode=0
#/etc/init.d/zxic_usbCfgMng start
#sh /etc/init.d/zcatlog_config.sh
#/etc/init.d/zxic-amt start
#exit 0
# check amt mode begin
cmdline=$(cat /proc/cmdline)
result=$(echo $cmdline | grep "bootmode=")
if [[ "$result" != "" ]]; then
bootmode=${cmdline##*bootmode=}
bootmode=${bootmode%% *}
else
bootmode="0"
fi
if [[ $bootmode == "amt" ]]; then
/etc/init.d/mdev start
sh /etc/init.d/fscheck.sh
/etc/init.d/nvserver start
/etc/init.d/nv-rpc-daemon start
nv set ver_mode=0
/etc/init.d/zxic_usbCfgMng start
sh /etc/init.d/zcatlog_config.sh
/etc/init.d/zxic-amt start
prj=`cat /sys/gmac/gmacconfig/type`
if [ "$prj" == "cpe" ]; then
ifconfig eth0 192.168.0.1 up
if [ $? -ne 0 ];then
echo "Error: ifconfig eth0 up failed."
else
config-udhcpd.sh lan -s 192.168.0.100
config-udhcpd.sh lan -e 192.168.0.200
config-udhcpd.sh lan -i eth0
config-udhcpd.sh lan -m 255.255.255.0
config-udhcpd.sh lan -g 192.168.0.1
config-udhcpd.sh lan -l /etc_rw/udhcpd.leases
udhcpd -f /etc_rw/udhcpd.conf &
fi
fi
exit 0
fi
# check amt mode end
exit 1