rc.subr (286163) | rc.subr (286303) |
---|---|
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 286163 2015-08-01 22:00:25Z jilles $ | 2# $FreeBSD: head/etc/rc.subr 286303 2015-08-05 03:03:57Z ngie $ |
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 --- 1250 unchanged lines hidden (view full) --- 1261 fi 1262 echo "$_cmd" 1263} 1264 1265# 1266# run_rc_script file arg 1267# Start the script `file' with `arg', and correctly handle the 1268# return value from the script. | 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 --- 1250 unchanged lines hidden (view full) --- 1261 fi 1262 echo "$_cmd" 1263} 1264 1265# 1266# run_rc_script file arg 1267# Start the script `file' with `arg', and correctly handle the 1268# return value from the script. |
1269# If `file' ends with `.sh', it's sourced into the current environment 1270# when $rc_fast_and_loose is set, otherwise it is run as a child process. | 1269# If `file' ends with `.sh' and lives in /etc/rc.d, ignore it as it's 1270# an old-style startup file. 1271# If `file' ends with `.sh' and does not live in /etc/rc.d, it's sourced 1272# into the current environment if $rc_fast_and_loose is set; otherwise 1273# it is run as a child process. |
1271# If `file' appears to be a backup or scratch file, ignore it. 1272# Otherwise if it is executable run as a child process. 1273# 1274run_rc_script() 1275{ 1276 _file=$1 1277 _arg=$2 1278 if [ -z "$_file" -o -z "$_arg" ]; then --- 812 unchanged lines hidden --- | 1274# If `file' appears to be a backup or scratch file, ignore it. 1275# Otherwise if it is executable run as a child process. 1276# 1277run_rc_script() 1278{ 1279 _file=$1 1280 _arg=$2 1281 if [ -z "$_file" -o -z "$_arg" ]; then --- 812 unchanged lines hidden --- |