-section:taboption("general", Flag, "guest", translate("Guest mode"))
-section:taboption("advanced", Flag, "adhoc", translate("Ad-hoc mode"))
+local mode = section:taboption("general", ListValue, "mode", translate("Category"))
+mode:value("auto", translate("Automatic"))
+mode:value("external", translate("External"))
+mode:value("guest", translate("Guest"))
+mode:value("adhoc", translate("Ad-Hoc"))
+mode.default = "auto"
+
+