(Lakka) Fix samba and bluetooth service management

This commit is contained in:
Jean-André Santoni 2016-05-01 21:33:31 +07:00
parent f9462ed562
commit bede7cfe2b

View File

@ -3164,7 +3164,7 @@ static void samba_enable_toggle_change_handler(void *data)
{
bool enable = false;
settings_t *settings = config_get_ptr();
if (settings && settings->ssh_enable)
if (settings && settings->samba_enable)
enable = true;
systemd_service_toggle(LAKKA_SAMBA_PATH, (char*)"smbd.service",
@ -3175,7 +3175,7 @@ static void bluetooth_enable_toggle_change_handler(void *data)
{
bool enable = false;
settings_t *settings = config_get_ptr();
if (settings && settings->ssh_enable)
if (settings && settings->bluetooth_enable)
enable = true;
systemd_service_toggle(LAKKA_BLUETOOTH_PATH, (char*)"bluetooth.service",