From dd1376df629869676d5c59a896c428f14f09b159 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 13 Jun 2018 15:58:19 +0200 Subject: [PATCH] system: this is way cooler for console --- src/etc/inc/system.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index 8d0be7dd9..756ce780e 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -938,7 +938,7 @@ function system_halt($sync = false) if (!$sync) { mwexec_bg($cmd); } else { - mwexec($cmd); + passthru($cmd); } } @@ -949,7 +949,7 @@ function system_reboot($sync = false) if (!$sync) { mwexec_bg($cmd); } else { - mwexec($cmd); + passthru($cmd); } }