rc.subr (123344) | rc.subr (124797) |
---|---|
1# $NetBSD: rc.subr,v 1.49 2002/05/21 12:31:01 lukem Exp $ | 1# $NetBSD: rc.subr,v 1.49 2002/05/21 12:31:01 lukem Exp $ |
2# $FreeBSD: head/etc/rc.subr 123344 2003-12-09 08:51:11Z mtm $ | 2# $FreeBSD: head/etc/rc.subr 124797 2004-01-21 16:36:17Z cperciva $ |
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 --- 1215 unchanged lines hidden (view full) --- 1226 debug "$_me: mount-point is ($devdir), ruleset is ($rs)" 1227 if ! mount -t devfs dev "$devdir" ; then 1228 warn "$_me: Unable to mount devfs on $devdir" 1229 return 1 1230 fi 1231 if [ -n "$rs" ]; then 1232 devfs_init_rulesets 1233 devfs_set_ruleset $rs $devdir | 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 --- 1215 unchanged lines hidden (view full) --- 1226 debug "$_me: mount-point is ($devdir), ruleset is ($rs)" 1227 if ! mount -t devfs dev "$devdir" ; then 1228 warn "$_me: Unable to mount devfs on $devdir" 1229 return 1 1230 fi 1231 if [ -n "$rs" ]; then 1232 devfs_init_rulesets 1233 devfs_set_ruleset $rs $devdir |
1234 devfs -m $devdir rule applyset |
|
1234 fi 1235 return 0 1236} 1237 1238# devfs_mount_jail dir [ruleset] 1239# Mounts a devfs file system appropriate for jails 1240# on the directory dir. If ruleset is specified, the ruleset 1241# it names will be used instead. If present, ruleset must --- 17 unchanged lines hidden --- | 1235 fi 1236 return 0 1237} 1238 1239# devfs_mount_jail dir [ruleset] 1240# Mounts a devfs file system appropriate for jails 1241# on the directory dir. If ruleset is specified, the ruleset 1242# it names will be used instead. If present, ruleset must --- 17 unchanged lines hidden --- |