about summary refs log tree commit diff
path: root/1
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-08-06 11:11:04 +0200
committerJuan RP <xtraeme@gmail.com>2014-08-06 11:11:04 +0200
commit2a902115587fd0dca23f46c0e3405596bde86e0c (patch)
tree134ca42d9557b7da48fd15ca4d8521749bf54e67 /1
parent4d99f66342f2117e3030b9c3c393651cfeca5a82 (diff)
downloadrunit-void-2a902115587fd0dca23f46c0e3405596bde86e0c.tar.gz
runit-void-2a902115587fd0dca23f46c0e3405596bde86e0c.tar.xz
runit-void-2a902115587fd0dca23f46c0e3405596bde86e0c.zip
1: if /sbin/sysctl is executable, run it to load system settings.
Diffstat (limited to '1')
-rwxr-xr-x15
1 files changed, 5 insertions, 0 deletions
diff --git a/1 b/1
index 62844dd..34b68c5 100755
--- a/1
+++ b/1
@@ -167,6 +167,11 @@ msg "Loading kernel modules...\n"
 modules-load -v ${MODULES} | tr '\n' ' ' | sed 's:insmod [^ ]*/::g; s:\.ko\(\.gz\)\? ::g'
 echo
 
+if [ -x /sbin/sysctl ]; then
+    msg "Loading sysctl(8) settings...\n"
+    sysctl --system
+fi
+
 dmesg >/var/log/dmesg.log
 
 install -m0 /dev/null /etc/runit/reboot