Add popup command parameter to the system module
This commit is contained in:
parent
2e8495d5ff
commit
91b1b5e037
2 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,11 @@ class Module(core.module.Module):
|
|||
util.cli.execute(command)
|
||||
|
||||
def popup(self, widget):
|
||||
popupcmd = self.parameter("popupcmd", "");
|
||||
if (popupcmd != ""):
|
||||
util.cli.execute(popupcmd)
|
||||
return
|
||||
|
||||
menu = util.popup.menu()
|
||||
reboot_cmd = self.parameter("reboot", "reboot")
|
||||
shutdown_cmd = self.parameter("shutdown", "shutdown -h now")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue