diff --git a/sources/gui/docs/netctl-gui-dbus-api.html b/sources/gui/docs/netctl-gui-dbus-api.html
index 4543303..1097d38 100644
--- a/sources/gui/docs/netctl-gui-dbus-api.html
+++ b/sources/gui/docs/netctl-gui-dbus-api.html
@@ -107,6 +107,11 @@ th.sub {
enables or disables the profile. Returns true if action has been performed successfully |
yes |
+
+ bool Reenable(QString profile) |
+ reenables the profile. Returns true if action has been performed successfully |
+ yes |
+
bool Restart(QString profile) |
restarts the profile. Returns true if action has been performed successfully |
@@ -117,6 +122,11 @@ th.sub {
starts or stops the profile. Returns true if action has been performed successfully |
yes |
+
+ bool StopAll() |
+ stops all active profiles. Returns true if action has been performed successfully |
+ yes |
+
bool SwitchTo(QString profile) |
switchs to the profile. Returns true if action has been performed successfully |
diff --git a/sources/gui/docs/netctl-gui-security-notes.html b/sources/gui/docs/netctl-gui-security-notes.html
index 91e9ab2..71de6f8 100644
--- a/sources/gui/docs/netctl-gui-security-notes.html
+++ b/sources/gui/docs/netctl-gui-security-notes.html
@@ -30,7 +30,7 @@
- Netctl control module
- netctl start|stop|restart|switch-to|enable|disable <profile>
. They are commands which provide a general control to netctl.
+ netctl stop-all|start|stop|restart|switch-to|enable|disable|reenable <profile>
. They are commands which provide a general control to netctl.
systemctl start|restart|enable <netctl-auto@service>
. They are commands which provide ability to control netctl-auto systemd service.
- Netctl profiles module
diff --git a/sources/helper/src/controladaptor.cpp b/sources/helper/src/controladaptor.cpp
index 149008c..e8cface 100644
--- a/sources/helper/src/controladaptor.cpp
+++ b/sources/helper/src/controladaptor.cpp
@@ -161,6 +161,12 @@ bool ControlAdaptor::Enable(const QString profile)
}
+bool ControlAdaptor::Reenable(const QString profile)
+{
+ return netctlCommand->reenableProfile(profile);
+}
+
+
bool ControlAdaptor::Restart(const QString profile)
{
return netctlCommand->restartProfile(profile);
@@ -173,6 +179,12 @@ bool ControlAdaptor::Start(const QString profile)
}
+bool ControlAdaptor::StopAll()
+{
+ return netctlCommand->stopAllProfiles();
+}
+
+
bool ControlAdaptor::SwitchTo(const QString profile)
{
return netctlCommand->switchToProfile(profile);
diff --git a/sources/helper/src/controladaptor.h b/sources/helper/src/controladaptor.h
index 61cbef4..a08d07a 100644
--- a/sources/helper/src/controladaptor.h
+++ b/sources/helper/src/controladaptor.h
@@ -56,8 +56,10 @@ public slots:
bool autoServiceRestart();
bool autoServiceStart();
bool Enable(const QString profile);
+ bool Reenable(const QString profile);
bool Restart(const QString profile);
bool Start(const QString profile);
+ bool StopAll();
bool SwitchTo(const QString profile);
// netctlProfile
bool Create(const QString profile, const QStringList settingsList);
diff --git a/sources/netctlgui/src/netctlinteract.cpp b/sources/netctlgui/src/netctlinteract.cpp
index 1b71948..00232e0 100644
--- a/sources/netctlgui/src/netctlinteract.cpp
+++ b/sources/netctlgui/src/netctlinteract.cpp
@@ -475,7 +475,7 @@ bool Netctl::stopAllProfiles()
{
if (debug) qDebug() << PDEBUG;
- return cmdCall(true, netctlCommand, QString("restart"));
+ return cmdCall(true, netctlCommand, QString("stop-all"));
}