Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
First of many changes to the wizard..
  • Loading branch information
Mark Clarkstone authored and perexg committed Feb 8, 2016
1 parent d64d713 commit 28fd83c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/wizard.c
Expand Up @@ -360,15 +360,19 @@ BASIC_STR_OPS(wizard_login_t, password)

DESCRIPTION_FCN(login, N_("\
Enter the access control details to secure your system. \
The first part of this covers the IPv4 network details \
The first part of this covers the network details \
for address-based access to the system; for example, \
192.168.1.0/24 to allow local access only to 192.168.1.x clients, \
or 0.0.0.0/0 or empty value for access from any system.\n\
This works alongside the second part, which is a familiar \
username/password combination, so provide these for both \
an administrator and regular (day-to-day) user. \
You can leave the username and password blank if you don't want \
this part, and would prefer anonymous access to anyone.\n\
this part, and would prefer anonymous access to anyone.\n\n<b>Notes</b>\n\
You may enter a comma seperated list of network prefixes.\n\
If you were asked to enter a username and password during installation \
avoid using the same username here as this may cause unexpected \
behavior.\n\
"))

wizard_page_t *wizard_login(const char *lang)
Expand All @@ -393,7 +397,8 @@ wizard_page_t *wizard_login(const char *lang)
.type = PT_STR,
.id = "network",
.name = N_("Allowed network"),
.desc = N_("Enter allowed network prefixes."),
.desc = N_("Enter allowed network prefix(es). You can enter a "
"comma seperated list of prefixes here."),
.get = wizard_get_value_network,
.set = wizard_set_value_network,
.group = 1
Expand Down Expand Up @@ -546,20 +551,23 @@ static void network_save(idnode_t *in)
.type = PT_STR, \
.id = "tuner" STRINGIFY(num), \
.name = N_("Tuner"), \
.desc = N_("Name of the tuner."), \
.get = network_get_tvalue##num, \
.opts = PO_RDONLY, \
.group = num, \
}, { \
.type = PT_STR, \
.id = "tunerid" STRINGIFY(num), \
.name = "Tuner", \
.desc = N_("Name of the tuner."), \
.get = network_get_tidvalue##num, \
.set = network_set_tidvalue##num, \
.opts = PO_PERSIST | PO_NOUI, \
}, { \
.type = PT_STR, \
.id = "network" STRINGIFY(num), \
.name = N_("Network type"), \
.desc = N_("Select an available network type for this tuner."), \
.get = network_get_value##num, \
.set = network_set_value##num, \
.list = network_get_list##num, \
Expand Down

0 comments on commit 28fd83c

Please sign in to comment.