diff options
Diffstat (limited to 'init.d/sysctl.Linux.in')
-rw-r--r-- | init.d/sysctl.Linux.in | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/init.d/sysctl.Linux.in b/init.d/sysctl.Linux.in index cda86b53..a1a88977 100644 --- a/init.d/sysctl.Linux.in +++ b/init.d/sysctl.Linux.in @@ -10,25 +10,7 @@ depend() start() { - local conf= retval=0 err errs - ebegin "Configuring kernel parameters" - eindent - - for conf in @SYSCONFDIR@/sysctl.conf @SYSCONFDIR@/sysctl.d/*.conf; do - if [ -r "$conf" ]; then - vebegin "applying $conf" - if ! err=$(sysctl -p "$conf" 2>&1 >/dev/null) ; then - errs="${errs} ${err}" - sysctl -e -p "${conf}" >/dev/null - fi - veend $? || retval=1 - fi - done - - eoutdent - if [ ${retval} -eq 0 ] && [ -n "${errs}" ] ; then - ewarn "Unknown keys:${errs}" - fi - eend $retval "Some errors were encountered: ${errs}" + sysctl --system + eend $? "Unable to configure some kernel parameters" } |