diff options
Diffstat (limited to 'dhcp-model.lua')
-rw-r--r-- | dhcp-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcp-model.lua b/dhcp-model.lua index 544f1b4..ca02a08 100644 --- a/dhcp-model.lua +++ b/dhcp-model.lua @@ -272,9 +272,9 @@ service_control = function ( command ) local retval = "" local line = "" - local file = io.popen( "/etc/init.d/dhcpd " .. command ) + local file = io.popen( "/etc/init.d/dhcpd " .. command .. " 2>&1" ) if file ~= nil then - line = file:read( "*a" ) + line = file:read( "*l" ) while line ~= nil do retval = retval .. "\n" .. line line = file:read( "*l" ) |