#!/bin/sh
#
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"@(#)s8_statd.sh	1.1	08/05/06 SMI"
#

#
# All native executables must be run using the native linker.
# By default, the kernel loads the linker at /lib/ld.so.1, which
# in an s8 zone is the s8 linker.  Hence when we run the native
# executable below, we explicitly specify /.SUNWnative/lib/ld.so.1 as our
# linker.  For convience we define "n" to be the native path prefix.
#
n=/.SUNWnative
LD_NOCONFIG=1
LD_LIBRARY_PATH_32=$n/lib:$n/usr/lib:$n/usr/lib/mps
LD_LIBRARY_PATH_64=$n/lib/64:$n/usr/lib/64:$n/usr/lib/mps/64
LD_PRELOAD_32=s8_npreload.so.1
LD_PRELOAD_64=s8_npreload.so.1
export LD_NOCONFIG
export LD_LIBRARY_PATH_32 LD_LIBRARY_PATH_64 LD_PRELOAD_32 LD_PRELOAD_64
exec /.SUNWnative/usr/lib/brand/solaris8/s8_native \
	/.SUNWnative/lib/ld.so.1 /.SUNWnative/usr/lib/nfs/statd
