let msg = '{"icon":"/usr/share/icons/48/help.png","body":"<b>Low System Memory</b><br>At least 1GiB of RAM is<br>recommended for the Live CD.<br>' + str(kB//1024) + 'MiB was detected."}'
os.write(sock,msg.encode())
try:
let manifest
with fileio.open('/var/msk/manifest','r') as f:
manifest = f.readlines()
let count = 0
for line in manifest:
if line.startswith('['):
count++
if count:
let sock = os.open("/dev/pex/toast",os.O_WRONLY)
let msg = '{"icon":"/usr/share/icons/48/package.png","body":"<b>Packages Available</b><br>' + str(count) + ' package' + ('s' if count > 1 else '') + ' are available from<br>the package repository."}'