From 5419c6f5465c0284412eb9867c729b3a653f8746 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 06 Aug 2014 10:43:26 -0400 Subject: Add sysctl service script and configuration --- diff --git a/scripts b/scripts index 8bce3b9..b1720f9 100644 --- a/scripts +++ b/scripts @@ -11,3 +11,4 @@ SYSLOGD syslog enabled TELNETD telnetd disabled - boottime enabled - rc.local enabled +- sysctl enabled diff --git a/src.etc/init.d/sysctl b/src.etc/init.d/sysctl new file mode 100644 index 0000000..c724780 --- /dev/null +++ b/src.etc/init.d/sysctl @@ -0,0 +1,10 @@ +#!/bin/sh /etc/rc.common + +START='80' + +start() +{ + [ -r /etc/sysctl.conf ] || return 0 + log 'Setting kernel sysctl parameters' + sysctl -pq +} diff --git a/src.etc/sysctl.conf b/src.etc/sysctl.conf new file mode 100644 index 0000000..119d730 --- /dev/null +++ b/src.etc/sysctl.conf @@ -0,0 +1 @@ +net.ipv4.ip_forward=1 -- cgit v0.9.1