diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-10-19 01:30:37 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-10-19 01:30:37 +0200 |
commit | 3e17bfe4f2e5e64f9528c26b38d4241ca46f1082 (patch) | |
tree | 940e98c492e136fa1d4bbd83abacc3d90b90adb8 /src/modules/SystemBackendPosix | |
parent | 8635603e2f4f8b61026f69532f3cda51bd711f91 (diff) | |
download | mad-3e17bfe4f2e5e64f9528c26b38d4241ca46f1082.tar mad-3e17bfe4f2e5e64f9528c26b38d4241ca46f1082.zip |
Client: Added support for paged output
Diffstat (limited to 'src/modules/SystemBackendPosix')
-rw-r--r-- | src/modules/SystemBackendPosix/SystemBackendPosix.cpp | 6 |
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)); } |