source: trunk/package/base-files/files/etc/init.d/sysctl

Last change on this file was 46239, checked in by blogic, 17 months ago

sysctl: read settings from /etc/sysctl.d/*.conf

This changes makes it possible to store custom settings
in individual files inside the directory /etc/sysctl.d/.

Signed-off-by: Stefan Tomanek <stefan.tomanek+openwrt@…>

  • Property svn:executable set to *
File size: 186 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2006 OpenWrt.org
3
4START=11
5start() {
6        for CONF in /etc/sysctl.conf /etc/sysctl.d/*.conf; do
7                [ -f "$CONF" ] && sysctl -p "$CONF" -e >&-
8        done
9}
Note: See TracBrowser for help on using the repository browser.