-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPlatformVariable.cpp
69 lines (63 loc) · 4.45 KB
/
PlatformVariable.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef _PlatformVariable_
#define _PlatformVariable_
#include <QString>
////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////
// This is a so configs for programm for any dist of Linux
// Please, do not edit this, if ypu dont know what is this
// If you want to build this programm, please check some variables before compiling
////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Этот файл является конфигурационным файлом для данного дистрибутива Linux
// Пожалуйста, не редактируйте его, если не знаете, что он делает
// Если вы хотите собрать данную программу под свой дистрибутив, пожалуйста,
// перепроверьте значения переменных перед компиляцией
////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////
class PlatformVariable {
public:
QString CommandToStartHostapd;
QString CommandToStoptHostapd;
QString CommandToStartDNSMASQ;
QString CommandToStoptDNSMASQ;
bool CheckHOSTAPDscript;
bool DisableDNSMASQinUbuntuPreciseInNM;
PlatformVariable() {
// The variables below must be edited according to the specifications
// your distribution, if it is not Ubuntu (Ubuntu by default)
////////////////////////////////////////////////////////////////////////////////////////////////////////////
// The command to start HOSTAPD
// Starting Hostapd
CommandToStartHostapd = "/etc/init.d/hostapd start";
////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////
// The command to stop HOSTAPD
// Stoping Hostapd
CommandToStoptHostapd = "/etc/init.d/hostapd stop";
////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////
// The command to start DNSMASQ
// Starting DNSMASQ
CommandToStartDNSMASQ = "/etc/init.d/dnsmasq start";
////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////
// The command to stop DNSMASQ
// Stoping DNSMASQ
CommandToStoptDNSMASQ = "/etc/init.d/dnsmasq stop";
////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Проверка и исправление скрипта /etc/init,d/hostapd в Ubuntu 11.10 и выше
// Check and autofix /etc/init.d/hostapd in Ubuntu >= 11.10
CheckHOSTAPDscript = true;
////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Отключение DNSMASQ, как локального DNS сервера для NM в Ubuntu 12.04
// Disable DNSMASQ in Ubuntu 12.04 with local DNS
DisableDNSMASQinUbuntuPreciseInNM = true;
////////////////////////////////////////////////////////////////////////////////////////////////////////////
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////
};
#endif