summaryrefslogtreecommitdiff
path: root/packages/initscripts/initscripts-1.0/bootmisc.sh
diff options
context:
space:
mode:
authorccsmart <ccsmart@smartpal.de>2005-08-15 18:59:01 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-15 18:59:01 +0000
commit4eddaed4476f9768827c89933ca3581612bbc1a9 (patch)
tree7f4b2ada5cf98960fd7b5c436ff606d464af7df9 /packages/initscripts/initscripts-1.0/bootmisc.sh
parent2b48a44ccb6909d15f37a4be9dbb0448ca9e1845 (diff)
Add support for /etc/sysctl.conf .
Diffstat (limited to 'packages/initscripts/initscripts-1.0/bootmisc.sh')
-rwxr-xr-xpackages/initscripts/initscripts-1.0/bootmisc.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/initscripts/initscripts-1.0/bootmisc.sh b/packages/initscripts/initscripts-1.0/bootmisc.sh
index ed46b222d2..814dba676c 100755
--- a/packages/initscripts/initscripts-1.0/bootmisc.sh
+++ b/packages/initscripts/initscripts-1.0/bootmisc.sh
@@ -23,6 +23,20 @@ then
fi
#
+# Apply /proc settings if defined
+#
+SYSCTL_CONF="/etc/sysctl.conf"
+if [ -f "${SYSCTL_CONF}" ]
+then
+ if [ -x "/sbin/sysctl" ]
+ then
+ /sbin/sysctl -p "${SYSCTL_CONF}"
+ else
+ echo "To have ${SYSCTL_CONF} applied during boot, install package <procps>."
+ fi
+fi
+
+#
# Update /etc/motd.
#
if test "$EDITMOTD" != no