#!/opt/lnxall_app/bin/lua local invoker = require "invoker" local hal = require "lnxhal" local module = {} local LOGO_AUTOSTART_DIR = "/home/linaro/.config/autostart/" local LOGO_AUTOSTART_FILES = { "logo-session.desktop", "logo-ctrl.sh", "logo_kernel.png", } function module.checkplat() local cpuinfo = hal.cpuinfo_get() return type(cpuinfo) == "table" and cpuinfo.arch == hal.ARCH_AARCH64 end function module.category() return "显示相关" end function module.description() return "检测 logo 界面" end function module.detailed() return "检查开机 logo 程序是否正常安装." end function module.suggestion() return nil end function module.step() local found = false local all_autostart = true for _, f in ipairs(LOGO_AUTOSTART_FILES) do if not invoker.statfile(LOGO_AUTOSTART_DIR .. f) then all_autostart = false break end end if all_autostart then found = true else local okay = invoker.invoke(invoker.NOSTDIO, "opkg", "status", "bootlogo") if okay == 0 then found = true end end return {}, not found end return module