gui/network_service.cpp: add dropbear

Origin commit data
------------------
Commit: fc3e9ebd62
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-06-19 (Thu, 19 Jun 2014)
This commit is contained in:
[CST] Focus
2014-06-19 10:15:31 +04:00
parent bdecef2e88
commit 7953d84860
4 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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)
{

View File

@@ -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,

View File

@@ -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",