rc.subr (153152) | rc.subr (153297) |
---|---|
1# $NetBSD: rc.subr,v 1.60 2003/07/26 05:13:47 lukem Exp $ | 1# $NetBSD: rc.subr,v 1.60 2003/07/26 05:13:47 lukem Exp $ |
2# $FreeBSD: head/etc/rc.subr 153152 2005-12-06 05:27:11Z yar $ | 2# $FreeBSD: head/etc/rc.subr 153297 2005-12-10 20:19:08Z dougb $ |
3# 4# Copyright (c) 1997-2002 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 --- 1364 unchanged lines hidden (view full) --- 1375 fi 1376 done 1377} 1378 1379find_local_scripts_new () { 1380 local_rc='' 1381 for dir in ${local_startup}; do 1382 if [ -d "${dir}" ]; then | 3# 4# Copyright (c) 1997-2002 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 --- 1364 unchanged lines hidden (view full) --- 1375 fi 1376 done 1377} 1378 1379find_local_scripts_new () { 1380 local_rc='' 1381 for dir in ${local_startup}; do 1382 if [ -d "${dir}" ]; then |
1383 for file in `grep -l '^# PROVIDE:' ${dir}/*`; do | 1383 for file in `grep -l '^# PROVIDE:' ${dir}/* 2>/dev/null`; do |
1384 case "$file" in 1385 *.sample) ;; 1386 *) if [ -x "$file" ]; then 1387 local_rc="${local_rc} ${file}" 1388 fi 1389 ;; 1390 esac 1391 done 1392 fi 1393 done 1394} 1395 1396fi | 1384 case "$file" in 1385 *.sample) ;; 1386 *) if [ -x "$file" ]; then 1387 local_rc="${local_rc} ${file}" 1388 fi 1389 ;; 1390 esac 1391 done 1392 fi 1393 done 1394} 1395 1396fi |