summaryrefslogtreecommitdiffstats
path: root/src/modules/SystemBackendPosix
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-10-19 01:30:37 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-10-19 01:30:37 +0200
commit3e17bfe4f2e5e64f9528c26b38d4241ca46f1082 (patch)
tree940e98c492e136fa1d4bbd83abacc3d90b90adb8 /src/modules/SystemBackendPosix
parent8635603e2f4f8b61026f69532f3cda51bd711f91 (diff)
downloadmad-3e17bfe4f2e5e64f9528c26b38d4241ca46f1082.tar
mad-3e17bfe4f2e5e64f9528c26b38d4241ca46f1082.zip
Client: Added support for paged output
Diffstat (limited to 'src/modules/SystemBackendPosix')
-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));
}