#!/usr/bin/python3

import os, subprocess

cmdline = subprocess.check_output("cat /proc/cmdline", shell = True).decode("utf-8")
if ((not "boot=casper" in cmdline) and (not "boot=live" in cmdline)):	
	os.system("/usr/lib/linuxmint/mintUpdate/mintUpdate.py")
