+ utils.header("generate temporary config file %(tmpfname)s"%locals())
+ for (option, value) in plc_vars:
+ os.write(tmpfconf, 'e %s\n%s\n' % (optin, value))
+ os.write(tmpfconf,'w\nq\n')
+ os.close(tmpfconf)
+
+ # configure plc
+ command = "plc-config-tty < %(tmpfname)s" % locals()
+ if self.config.verbose: utils.header(command)
+ (stdout, stderr) = utils.popen(command)
+
+ # clean up temporary conf file
+ if self.config.verbose: utils.header("removing %(tmpfname)s"%locals())
+ os.unlink(tmpfname)
+
+ # umount plc (need to do this optionally, as we do not want this for myplc-native)
+ command = "/sbin/service plc umount"
+ if self.config.verbose: utils.header(command)