14 lines
No EOL
482 B
Text
14 lines
No EOL
482 B
Text
if not security.getSU() then
|
|
exception.throw("RestrictedOpsException")
|
|
return
|
|
end
|
|
|
|
if not config.load("/etc/tpm/packageInstalled.dat") then
|
|
kerneldraw.printAppInfo("tpm", "packageInstalled.dat is missing or corrupt")
|
|
if kerneldraw.request("Repair TPM data files") then
|
|
config.save({}, "/etc/tpm/packageInstalled.dat")
|
|
kerneldraw.printAppInfo("tpm", "Package registry reconstructed")
|
|
end
|
|
else
|
|
kerneldraw.printAppInfo("tpm", "packageInstalled.dat is correctly readable")
|
|
end |