rc.subr (152519) | rc.subr (153027) |
---|---|
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 152519 2005-11-16 10:45:19Z yar $ | 2# $FreeBSD: head/etc/rc.subr 153027 2005-12-02 20:06:07Z 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 --- 1339 unchanged lines hidden (view full) --- 1350 provider=${provider%.eli} 1351 provider=${provider#/dev/} 1352 devices2="${devices2} ${provider}" 1353 done 1354 1355 echo ${devices2} 1356} 1357 | 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 --- 1339 unchanged lines hidden (view full) --- 1350 provider=${provider%.eli} 1351 provider=${provider#/dev/} 1352 devices2="${devices2} ${provider}" 1353 done 1354 1355 echo ${devices2} 1356} 1357 |
1358# Find scripts in local_startup directories that use the old syntax 1359# 1360find_local_scripts_old () { 1361 zlist='' 1362 slist='' 1363 for dir in ${local_startup}; do 1364 if [ -d "${dir}" ]; then 1365 for file in ${dir}/[0-9]*.sh; do 1366 grep '^# PROVIDE:' $file >/dev/null 2>&1 && 1367 continue 1368 zlist="$zlist $file" 1369 done 1370 for file in ${dir}/[^0-9]*.sh; do 1371 grep '^# PROVIDE:' $file >/dev/null 2>&1 && 1372 continue 1373 slist="$slist $file" 1374 done 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 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 |
|
1358fi | 1396fi |