rc.subr (131135) | rc.subr (131550) |
---|---|
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 131135 2004-06-26 09:27:30Z mtm $ | 2# $FreeBSD: head/etc/rc.subr 131550 2004-07-04 07:21:18Z 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 --- 27 unchanged lines hidden (view full) --- 38# rc.subr 39# functions used by various rc scripts 40# 41 42# 43# Operating System dependent/independent variables 44# 45 | 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 --- 27 unchanged lines hidden (view full) --- 38# rc.subr 39# functions used by various rc scripts 40# 41 42# 43# Operating System dependent/independent variables 44# 45 |
46if [ -z "${_rc_subr_loaded}" ]; then 47 48_rc_subr_loaded="YES" 49 |
|
46SYSCTL="/sbin/sysctl" 47SYSCTL_N="${SYSCTL} -n" 48CMD_OSTYPE="${SYSCTL_N} kern.ostype" 49OSTYPE=`${CMD_OSTYPE}` 50ID="/usr/bin/id" 51IDCMD="if [ -x $ID ]; then $ID -un; fi" 52 53case ${OSTYPE} in --- 1227 unchanged lines hidden (view full) --- 1281# $2 = mount point 1282# $3 = (optional) bytes-per-inode 1283mount_md() { 1284 if [ -n "$3" ]; then 1285 bpi="-i $3" 1286 fi 1287 /sbin/mdmfs $bpi -s $1 -M md $2 1288} | 50SYSCTL="/sbin/sysctl" 51SYSCTL_N="${SYSCTL} -n" 52CMD_OSTYPE="${SYSCTL_N} kern.ostype" 53OSTYPE=`${CMD_OSTYPE}` 54ID="/usr/bin/id" 55IDCMD="if [ -x $ID ]; then $ID -un; fi" 56 57case ${OSTYPE} in --- 1227 unchanged lines hidden (view full) --- 1285# $2 = mount point 1286# $3 = (optional) bytes-per-inode 1287mount_md() { 1288 if [ -n "$3" ]; then 1289 bpi="-i $3" 1290 fi 1291 /sbin/mdmfs $bpi -s $1 -M md $2 1292} |
1293 1294fi |
|