Example #1
0
    def remove_swap(self):
	    	self.enable.value = "0"
		runBackCmd("/scripts/swap_script.sh delete")
		self.session.open(MessageBox, _("Please wait...removing swapfile!!!"), MessageBox.TYPE_INFO, timeout=4)
		self.load_conf()
		time.sleep(1)
		self.createInfo()
Example #2
0
    def create_swap(self):
	        self.enable.value = "1"
		self.save_conf()
		runBackCmd("/scripts/swap_script.sh create")
		self.session.open(MessageBox, _("Please wait...creating swapfile!!!"), MessageBox.TYPE_INFO, timeout=6)
		time.sleep(1)
		self.load_conf()
		self.createInfo()
Example #3
0
	def __menuCallback(self, val):
		if val != None:
			val_2 = self["menu"].l.getCurrentSelection()
			val_2=val_2.strip().split()
			cmd = "killall -" + val[0] + " " + val_2[3]
			runBackCmd(cmd)
			os.system("ps > /tmp/.ps")
			self.__fillList()
			self.fillList2()