summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/SystemBackendPosix/SystemBackendPosix.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/SystemBackendPosix/SystemBackendPosix.cpp b/src/modules/SystemBackendPosix/SystemBackendPosix.cpp
index 6df087d..b9313e9 100644
--- a/src/modules/SystemBackendPosix/SystemBackendPosix.cpp
+++ b/src/modules/SystemBackendPosix/SystemBackendPosix.cpp
@@ -31,7 +31,7 @@ namespace SystemBackendPosix {
void SystemBackendPosix::getFSInfo(std::vector<Common::SystemManager::FSInfo> *fsInfo) throw(Core::Exception) {
application->getThreadManager()->detach();
- FILE *pipe = popen("/bin/df -P -k", "r");
+ FILE *pipe = popen("df -P -k", "r");
if(!pipe)
throw(Core::Exception(Core::Exception::NOT_AVAILABLE));
@@ -80,14 +80,14 @@ void SystemBackendPosix::getFSInfo(std::vector<Common::SystemManager::FSInfo> *f
void SystemBackendPosix::shutdown() throw(Core::Exception) {
application->getThreadManager()->detach();
- if(system("/sbin/halt") != 0)
+ if(system("halt") != 0)
throw(Core::Exception(Core::Exception::NOT_AVAILABLE));
}
void SystemBackendPosix::reboot() throw(Core::Exception) {
application->getThreadManager()->detach();
- if(system("/sbin/reboot") != 0)
+ if(system("reboot") != 0)
throw(Core::Exception(Core::Exception::NOT_AVAILABLE));
}