rc.subr (275359) | rc.subr (286163) |
---|---|
1# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $ | 1# $NetBSD: rc.subr,v 1.67 2006/10/07 11:25:15 elad Exp $ |
2# $FreeBSD: head/etc/rc.subr 275359 2014-12-01 12:17:42Z des $ | 2# $FreeBSD: head/etc/rc.subr 286163 2015-08-01 22:00:25Z jilles $ |
3# 4# Copyright (c) 1997-2004 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# This code is derived from software contributed to The NetBSD Foundation 8# by Luke Mewburn. 9# 10# Redistribution and use in source and binary forms, with or without --- 1317 unchanged lines hidden (view full) --- 1328 . /etc/rc.conf 1329 fi 1330 _rc_conf_loaded=true 1331 fi 1332 1333 # If a service name was specified, attempt to load 1334 # service-specific configuration 1335 if [ -n "$_name" ] ; then | 3# 4# Copyright (c) 1997-2004 The NetBSD Foundation, Inc. 5# All rights reserved. 6# 7# This code is derived from software contributed to The NetBSD Foundation 8# by Luke Mewburn. 9# 10# Redistribution and use in source and binary forms, with or without --- 1317 unchanged lines hidden (view full) --- 1328 . /etc/rc.conf 1329 fi 1330 _rc_conf_loaded=true 1331 fi 1332 1333 # If a service name was specified, attempt to load 1334 # service-specific configuration 1335 if [ -n "$_name" ] ; then |
1336 for _d in /etc ${local_startup%*/rc.d}; do | 1336 for _d in /etc ${local_startup}; do 1337 _d=${_d%/rc.d} |
1337 if [ -f ${_d}/rc.conf.d/"$_name" ]; then 1338 debug "Sourcing ${_d}/rc.conf.d/$_name" 1339 . ${_d}/rc.conf.d/"$_name" 1340 elif [ -d ${_d}/rc.conf.d/"$_name" ] ; then 1341 local _rc 1342 for _rc in ${_d}/rc.conf.d/"$_name"/* ; do 1343 if [ -f "$_rc" ] ; then 1344 debug "Sourcing $_rc" --- 745 unchanged lines hidden --- | 1338 if [ -f ${_d}/rc.conf.d/"$_name" ]; then 1339 debug "Sourcing ${_d}/rc.conf.d/$_name" 1340 . ${_d}/rc.conf.d/"$_name" 1341 elif [ -d ${_d}/rc.conf.d/"$_name" ] ; then 1342 local _rc 1343 for _rc in ${_d}/rc.conf.d/"$_name"/* ; do 1344 if [ -f "$_rc" ] ; then 1345 debug "Sourcing $_rc" --- 745 unchanged lines hidden --- |