sysctl (256281) | sysctl (261153) |
---|---|
1#!/bin/sh 2# | 1#!/bin/sh 2# |
3# $FreeBSD: stable/10/etc/rc.d/sysctl 248620 2013-03-22 20:12:25Z jilles $ | 3# $FreeBSD: stable/10/etc/rc.d/sysctl 261153 2014-01-25 10:43:47Z demon $ |
4# 5 6# PROVIDE: sysctl 7 8. /etc/rc.subr 9 10name="sysctl" 11command="/sbin/sysctl" --- 10 unchanged lines hidden (view full) --- 22 command_args="-f" 23 ;; 24 *) 25 command_args="-i -f" 26 ;; 27 esac 28 29 for _f in /etc/sysctl.conf /etc/sysctl.conf.local; do | 4# 5 6# PROVIDE: sysctl 7 8. /etc/rc.subr 9 10name="sysctl" 11command="/sbin/sysctl" --- 10 unchanged lines hidden (view full) --- 22 command_args="-f" 23 ;; 24 *) 25 command_args="-i -f" 26 ;; 27 esac 28 29 for _f in /etc/sysctl.conf /etc/sysctl.conf.local; do |
30 [ -r ${_f} ] && ${command} ${command_args} ${_f} > /dev/null | 30 if [ -r ${_f} ]; then 31 ${command} ${command_args} ${_f} > /dev/null 32 fi |
31 done 32} 33 34load_rc_config $name 35run_rc_command "$1" | 33 done 34} 35 36load_rc_config $name 37run_rc_command "$1" |