14887Schin######################################################################## 24887Schin# # 34887Schin# This software is part of the ast package # 4*12068SRoger.Faulkner@Oracle.COM# Copyright (c) 1985-2010 AT&T Intellectual Property # 54887Schin# and is licensed under the # 64887Schin# Common Public License, Version 1.0 # 78462SApril.Chin@Sun.COM# by AT&T Intellectual Property # 84887Schin# # 94887Schin# A copy of the License is available at # 104887Schin# http://www.opensource.org/licenses/cpl1.0.txt # 114887Schin# (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) # 124887Schin# # 134887Schin# Information and Software Systems Research # 144887Schin# AT&T Research # 154887Schin# Florham Park NJ # 164887Schin# # 174887Schin# Glenn Fowler <gsf@research.att.com> # 184887Schin# David Korn <dgk@research.att.com> # 194887Schin# Phong Vo <kpv@research.att.com> # 204887Schin# # 214887Schin######################################################################## 224887Schin: generate preroot features 234887Schincase $# in 244887Schin0) ;; 254887Schin*) eval $1 264887Schin shift 274887Schin ;; 284887Schinesac 294887Schinif /etc/preroot / /bin/echo >/dev/null 304887Schinthen cat <<! 314887Schin#pragma prototyped 324887Schin 334887Schin#define FS_PREROOT 1 /* preroot enabled */ 344887Schin#define PR_BASE "CCS" /* preroot base env var */ 354887Schin#define PR_COMMAND "/etc/preroot" /* the preroot command */ 364887Schin#define PR_REAL "/dev/.." /* real root pathname */ 374887Schin#define PR_SILENT "CCSQUIET" /* no command trace */ 384887Schin 394887Schinextern char* getpreroot(char*, const char*); 404887Schinextern int ispreroot(const char*); 414887Schinextern int realopen(const char*, int, int); 424887Schinextern void setpreroot(char**, const char*); 434887Schin 444887Schin! 454887Schinelse echo "/* preroot not enabled */" 464887Schinfi 47