rc.subr (270698) | rc.subr (271545) |
---|---|
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 270698 2014-08-27 09:19:22Z hrs $ | 2# $FreeBSD: head/etc/rc.subr 271545 2014-09-13 18:54:15Z hrs $ |
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 --- 1950 unchanged lines hidden (view full) --- 1961 fi 1962 done 1963 ;; 1964 esac 1965 1966 return 0 1967} 1968 | 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 --- 1950 unchanged lines hidden (view full) --- 1961 fi 1962 done 1963 ;; 1964 esac 1965 1966 return 0 1967} 1968 |
1969# check_jail mib 1970# Return true if security.jail.$mib exists and set to 1. 1971 1972check_jail() 1973{ 1974 local _mib _v 1975 1976 _mib=$1 1977 if _v=$(${SYSCTL_N} "security.jail.$_mib" 2> /dev/null); then 1978 case $_v in 1979 1) return 0;; 1980 esac 1981 fi 1982 return 1 1983} 1984 |
|
1969# check_kern_features mib 1970# Return existence of kern.features.* sysctl MIB as true or 1971# false. The result will be cached in $_rc_cache_kern_features_ 1972# namespace. "0" means the kern.features.X exists. 1973 1974check_kern_features() 1975{ 1976 local _v --- 53 unchanged lines hidden --- | 1985# check_kern_features mib 1986# Return existence of kern.features.* sysctl MIB as true or 1987# false. The result will be cached in $_rc_cache_kern_features_ 1988# namespace. "0" means the kern.features.X exists. 1989 1990check_kern_features() 1991{ 1992 local _v --- 53 unchanged lines hidden --- |