1#!/usr/bin/env python 2 3def cmd(s): 4 print s 5 if os.system(s): 6 sys.exit(1) 7cmd("smc-stop") 8cmd("smc-start") 9 10