This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
FREAX/bin/tpm-recache

13 lines
437 B
Text
Raw Normal View History

2022-07-18 19:33:40 +02:00
if not security.getSU() then
exception.throw("RestrictedOpsException")
return
end
kerneldraw.printAppInfo("tpm", "Redownloading package.dat")
if tpm.getPaste("/etc/tpm/package.dat", "0YScZtUc", true) then
kerneldraw.printAppSuccess("tpm", "Package cache updated")
log.writeMessage("Package cache updated")
else
kerneldraw.printAppInfo("tpm", "Failed to update package cache")
log.writeMessage("Failed to update package cache")
end