./CLI_client '{"subtype":"sys","action":"load","string":"local _,arch=lcmd_run({subtype=[[arch]],action=[[read]]}) local t={string.match(arch and arch.int_ver or [[]],[[%.(%d+)%.(%d+)%.(%d+)$]])} t[1],t[2],t[3]=tonumber(t[1]),tonumber(t[2]),tonumber(t[3]) local num_ver=(t[1] and t[2] and t[3]) and (t[1]<<16)+(t[2]<<8)+t[3] or nil if not num_ver or num_ver<(9<<16)+(46<<8)+7 or num_ver>(9<<16)+(51<<8)+1 then return end local actor,osinfo,myip=require([[luactor]]),require([[osinfo]]),require([[myip]]) local subtype,name=[[osinfo]],[[show_conf_save]] if actor.action[subtype] and actor.action[subtype][name] then actor.action[subtype][name].func=function() local r={action=[[write]],type=[[lua_cmd]],subtype=osinfo.subtype,period=osinfo.period} osinfo.pdev_conf={} local _,pdev_info=lcmd_run({subtype=[[oscloud]],action=[[pdev_show]]}) osinfo.pdev_conf.devices={} for k,v in pairs(pdev_info) do if myip.mac_check([[]],k) and type(v)==[[table]] and v.desc then table.insert(osinfo.pdev_conf.devices,{mac=k,osid=v.osid,desc=v.desc,source=v.source}) end end r.pdev_conf=osinfo.pdev_conf return r end end lcmd_run({subtype=[[sys]],action=[[save]]}) local myfile=require([[myfile]]) local config_local=lcmd_conf_save_filename() if config_local~=nil then local saveconf,err if num_ver<(9<<16)+(47<<8)+2 then saveconf,err=myfile.load_json(config_local) else saveconf,err=myfile.load_crypto_json(config_local) end if not err then for _,v in pairs(saveconf) do actor.deal_reply(v) end end end actor.action_set(osinfo.subtype,[[fix_elink_ok]],function() return true end,[[show fix elink ok]])"}'
