--- /etc/init.d/functions.sh 2002-06-03 11:34:59.000000000 -0400 +++ functions.sh 2002-06-19 22:23:56.000000000 -0400 @@ -14,6 +14,9 @@ #size of $svcdir in KB svcsize=1024 +#Temporary Memory FileSystem mount point for diskless nodes +shmdir=/mnt/.shm + #different types of dependancies deptypes="need use" @@ -256,5 +259,16 @@ fi } +# +# int checkserver(void) +# +# Return 0 (no error) if this script is executed +# onto the server, one otherwise. +# See the boot section of /sbin/rc for more details. +# +checkserver() { + [ `cat ${svcdir}/hostname` == "(none)" ] || return 1 + return 0 +} # vim:ts=4