diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-03-07 07:21:31 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-03-07 07:21:31 +0000 |
commit | 7c839a51b0c941c0415d38918a6b33469d73a8ca (patch) | |
tree | 48c30c4e3b1f4a2edab8c84e854ab63c88fb103c /shorewall-controller.lua | |
parent | 41d13da850347a5c2691af7e4d4389fec227188a (diff) | |
download | acf-shorewall-7c839a51b0c941c0415d38918a6b33469d73a8ca.tar.bz2 acf-shorewall-7c839a51b0c941c0415d38918a6b33469d73a8ca.tar.xz |
Changed the 'Restart' button to a 'Check' button on the config-tab.
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@824 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'shorewall-controller.lua')
-rw-r--r-- | shorewall-controller.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/shorewall-controller.lua b/shorewall-controller.lua index dd64ae2..f515719 100644 --- a/shorewall-controller.lua +++ b/shorewall-controller.lua @@ -589,6 +589,15 @@ function config(self) }) config.rules_cmd.descr="Mark a item in above list before pressing [" .. config.rules_cmd.value .. "]" + -- Add button + config.check_cmd = cfe ({ + name="check_cmd", + label="Check if config works", + descr="Attention! This check could take a long time depending on your configuration.", + value="Check", + type="submit", + }) + -- Management buttons -- Display management buttons local management = displaycmdmanagement(disablestart,disablestop,disablerestart) @@ -653,7 +662,7 @@ function config(self) option={ script=ENV["SCRIPT_NAME"], prefix=self.conf.prefix, controller = self.conf.controller, - action = "expert", + action = "check", link = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller, }, clientdata=clientdata, savesuccess=savesuccess, |