标签:str strong 系统启动 res $1 config restore The ubuntu
cat /etc/rc0.d/K01rtslib-fb-targetctl
case "$1" in
start)
check_configfs_module
check_configfs_mounted
log_daemon_msg "Loading $DESC" "$NAME"
${DAEMON} restore
if [ $? -gt 0 ] ; then
log_end_msg 1
exit 1
fi
log_end_msg 0
;;
系统启动时,会调用targetctl restore来恢复saveconfig.json中的内容到targetcli
ubuntu18.04 rtslib-fb-targetctl开机restore
标签:str strong 系统启动 res $1 config restore The ubuntu
原文地址:https://www.cnblogs.com/longchang/p/11508104.html