+m.description = translate("Dynamic DNS allows that your router can be reached with " ..
+ "a fixed hostname while having a dynamically changing " ..
+ "IP address.")
+
+m.on_after_commit = function(self)
+ if self.changed then -- changes ?
+ if SYS.init.enabled("ddns") then -- ddns service enabled, restart all
+ os.execute("/etc/init.d/ddns restart")
+ else -- ddns service disabled, send SIGHUP to running
+ os.execute("killall -1 dynamic_dns_updater.sh")
+ end
+ end
+end
+
+-- SimpleSection definiton -- ##################################################
+-- with all the JavaScripts we need for "a good Show"
+a = m:section( SimpleSection )
+a.template = "ddns/overview_status"
+
+-- SimpleSection definition -- #################################################