diff --git a/package/gluon-core/luasrc/usr/lib/lua/gluon/sysctl.lua b/package/gluon-core/luasrc/usr/lib/lua/gluon/sysctl.lua index 44b0c21786133ef0b9a3649678899a96e0f2170a..ee42943729457589903dab020883a7444713218e 100644 --- a/package/gluon-core/luasrc/usr/lib/lua/gluon/sysctl.lua +++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/sysctl.lua @@ -4,5 +4,9 @@ local util = require 'gluon.util' module 'gluon.sysctl' function set(name, value) - util.replace_prefix('/etc/sysctl.conf', name .. '=', name .. '=' .. value .. '\n') + local new + if value then + new = name .. '=' .. value .. '\n' + end + util.replace_prefix('/etc/sysctl.conf', name .. '=', new) end