diff --git a/data/locale/english.locale b/data/locale/english.locale index 709e95d3f..e295cb317 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -1006,6 +1006,7 @@ menu.hint_movieplayer_plugin Choose a plugin that's executed with the one touch menu.hint_net_broadcast Enter broadcast address\nif unsure, use IP address with last .255 menu.hint_net_dhcp Use DHCP server to auto-configure menu.hint_net_djmount Mount UPnP devices as filesystem\nunder /media/00upnp +menu.hint_net_dropbear Enable ssh access to the box menu.hint_net_ftpd Enable file transfer using FTP menu.hint_net_gateway Enter gateway/router IP address menu.hint_net_hostname Change your box hostname diff --git a/src/gui/network_service.cpp b/src/gui/network_service.cpp index 9ae2ec059..15ff33e8b 100644 --- a/src/gui/network_service.cpp +++ b/src/gui/network_service.cpp @@ -50,15 +50,16 @@ struct network_service int enabled; }; -#define SERVICE_COUNT 5 -static struct network_service services[SERVICE_COUNT] = +static struct network_service services[] = { { "FTP", "vsftpd", "", LOCALE_MENU_HINT_NET_FTPD, "", 0 }, { "Telnet", "telnetd", "-l/bin/login", LOCALE_MENU_HINT_NET_TELNET, "", 0 }, { "DjMount", "djmount", "-o iocharset=UTF-8 /media/00upnp/", LOCALE_MENU_HINT_NET_DJMOUNT, "", 0 }, { "uShare", "ushare", "-D -n `cat /etc/hostname`", LOCALE_MENU_HINT_NET_USHARE, "", 0 }, { "xupnpd", "xupnpd", "", LOCALE_MENU_HINT_NET_XUPNPD, "", 0 }, + { "Dropbear", "dropbear", "-B", LOCALE_MENU_HINT_NET_DROPBEAR, "", 0 }, }; +#define SERVICE_COUNT (sizeof(services)/sizeof(struct network_service)) CNetworkService::CNetworkService(std::string cmd, std::string opts) { diff --git a/src/system/locals.h b/src/system/locals.h index 51943932f..6e57c0539 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -1033,6 +1033,7 @@ typedef enum LOCALE_MENU_HINT_NET_BROADCAST, LOCALE_MENU_HINT_NET_DHCP, LOCALE_MENU_HINT_NET_DJMOUNT, + LOCALE_MENU_HINT_NET_DROPBEAR, LOCALE_MENU_HINT_NET_FTPD, LOCALE_MENU_HINT_NET_GATEWAY, LOCALE_MENU_HINT_NET_HOSTNAME, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index ad7629dfb..850fe513a 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -1033,6 +1033,7 @@ const char * locale_real_names[] = "menu.hint_net_broadcast", "menu.hint_net_dhcp", "menu.hint_net_djmount", + "menu.hint_net_dropbear", "menu.hint_net_ftpd", "menu.hint_net_gateway", "menu.hint_net_hostname",