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