rc.subr (151426) | rc.subr (151619) |
---|---|
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 151426 2005-10-17 19:01:53Z jhb $ | 2# $FreeBSD: head/etc/rc.subr 151619 2005-10-24 08:53:21Z maxim $ |
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 --- 1168 unchanged lines hidden (view full) --- 1179 devfs_rulesets_from_file $file || return 1 1180 done 1181 devfs_rulesets_init=1 1182 debug "$_me: devfs rulesets initialized" 1183 return 0 1184} 1185 1186# devfs_set_ruleset ruleset [dir] | 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 --- 1168 unchanged lines hidden (view full) --- 1179 devfs_rulesets_from_file $file || return 1 1180 done 1181 devfs_rulesets_init=1 1182 debug "$_me: devfs rulesets initialized" 1183 return 0 1184} 1185 1186# devfs_set_ruleset ruleset [dir] |
1187# Sets the default ruleset of dir to ruleset. The ruleset arguement | 1187# Sets the default ruleset of dir to ruleset. The ruleset argument |
1188# must be a ruleset name as specified in devfs.rules(5) file. 1189# Returns non-zero if it could not set it successfully. 1190# 1191devfs_set_ruleset() 1192{ 1193 local devdir rs _me 1194 [ -n "$1" ] && eval rs=\$$1 || rs= 1195 [ -n "$2" ] && devdir="-m "$2"" || devdir= --- 162 unchanged lines hidden --- | 1188# must be a ruleset name as specified in devfs.rules(5) file. 1189# Returns non-zero if it could not set it successfully. 1190# 1191devfs_set_ruleset() 1192{ 1193 local devdir rs _me 1194 [ -n "$1" ] && eval rs=\$$1 || rs= 1195 [ -n "$2" ] && devdir="-m "$2"" || devdir= --- 162 unchanged lines hidden --- |