rc.subr (211319) | rc.subr (217090) |
---|---|
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 211319 2010-08-14 22:28:07Z dougb $ | 2# $FreeBSD: head/etc/rc.subr 217090 2011-01-07 10:59:22Z jh $ |
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 --- 1333 unchanged lines hidden (view full) --- 1344 _me="devfs_init_rulesets" 1345 1346 # Go through this only once 1347 if [ -n "$devfs_rulesets_init" ]; then 1348 debug "$_me: devfs rulesets already initialized" 1349 return 1350 fi 1351 for file in $devfs_rulesets; do | 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 --- 1333 unchanged lines hidden (view full) --- 1344 _me="devfs_init_rulesets" 1345 1346 # Go through this only once 1347 if [ -n "$devfs_rulesets_init" ]; then 1348 debug "$_me: devfs rulesets already initialized" 1349 return 1350 fi 1351 for file in $devfs_rulesets; do |
1352 devfs_rulesets_from_file $file || return 1 | 1352 if ! devfs_rulesets_from_file $file; then 1353 warn "$_me: could not read rules from $file" 1354 return 1 1355 fi |
1353 done 1354 devfs_rulesets_init=1 1355 debug "$_me: devfs rulesets initialized" 1356 return 0 1357} 1358 1359# devfs_set_ruleset ruleset [dir] 1360# Sets the default ruleset of dir to ruleset. The ruleset argument --- 353 unchanged lines hidden --- | 1356 done 1357 devfs_rulesets_init=1 1358 debug "$_me: devfs rulesets initialized" 1359 return 0 1360} 1361 1362# devfs_set_ruleset ruleset [dir] 1363# Sets the default ruleset of dir to ruleset. The ruleset argument --- 353 unchanged lines hidden --- |