aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorMartin Langhoff <martin@laptop.org>2011-02-23 10:50:05 -0500
committerBill Nottingham <notting@redhat.com>2011-02-25 14:47:54 -0500
commitbd4816f2413307a45fce5fc19b909860b7196fa7 (patch)
tree87c66c32d9ca35eff5df9d6f9b19ef0f5169f4d7 /rc.d/rc.sysinit
parentbdbd88df9f62c481cce46b0b8654cf9a16c8995f (diff)
downloadinitscripts-bd4816f2413307a45fce5fc19b909860b7196fa7.tar
initscripts-bd4816f2413307a45fce5fc19b909860b7196fa7.tar.gz
initscripts-bd4816f2413307a45fce5fc19b909860b7196fa7.tar.bz2
initscripts-bd4816f2413307a45fce5fc19b909860b7196fa7.tar.xz
initscripts-bd4816f2413307a45fce5fc19b909860b7196fa7.zip
Add support for sysctl.d (#59311)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 4 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 8af1cce2..f8f701af 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -152,6 +152,10 @@ mount -n /dev/pts >/dev/null 2>&1
# Configure kernel parameters
update_boot_stage RCkernelparam
sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
+for file in /etc/sysctl.d/* ; do
+ is_ignored_file "$file" && continue
+ test -f "$file" && sysctl -e -p "$file" >/dev/null 2>&1
+done
# Set the hostname.
update_boot_stage RChostname