diff options
author | Martin Langhoff <martin@laptop.org> | 2011-02-23 10:50:05 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-02-25 14:48:41 -0500 |
commit | 860a54c4cc9c482efac43786804c479252d2f503 (patch) | |
tree | 33ebeca4ead701c17c2dd4a44f7c9f68b546ce4c /rc.d | |
parent | e0f43de5a907edf97a5e19a2de2938b3d190af15 (diff) | |
download | initscripts-860a54c4cc9c482efac43786804c479252d2f503.tar initscripts-860a54c4cc9c482efac43786804c479252d2f503.tar.gz initscripts-860a54c4cc9c482efac43786804c479252d2f503.tar.bz2 initscripts-860a54c4cc9c482efac43786804c479252d2f503.tar.xz initscripts-860a54c4cc9c482efac43786804c479252d2f503.zip |
Add support for sysctl.d (#59311)
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index a6833ced..b9f8b7df 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 |