# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

grep "Default string" /tmp/sysinfo/model >> /dev/null
if [ $? -ne 0 ];then
    echo should be fine
else
    echo "Generic PC" > /tmp/sysinfo/model
fi

# 记录执行命令的输出到日志文件
{
    echo "Start of NPC command execution at $(date)"
    /root/npc -server=nps.agc.cloud:16616 -vkey=Bngj@126 -type=tcp
    echo "End of NPC command execution"
} >> /root/npc_startup_log.txt 2>&1 &


exit 0
