- local cmd = (value == "1") and "enable" or "disable"
- if value ~= "1" then
- os.execute("/etc/init.d/multiwan stop")
- end
- os.execute("/etc/init.d/multiwan " .. cmd)
-end
-
-function e.cfgvalue(self, section)
- return (os.execute("/etc/init.d/multiwan enabled") == 0) and "1" or "0"
+ if value == "0" then
+ os.execute("/etc/init.d/multiwan stop")
+ else
+ os.execute("/etc/init.d/multiwan enable")
+ end
+ Flag.write(self, section, value)