outsource network dependent settings

This commit is contained in:
zimoch
2011-05-27 13:35:44 +00:00
parent daadd0fd32
commit 1f99f54d96
4 changed files with 32 additions and 19 deletions

7
network.fin Normal file
View File

@@ -0,0 +1,7 @@
# setup mount points
hostAdd ("fileserver","129.129.145.56")
nfsMount ("fileserver", "/export/fin/ioc", "/ioc")
nfsMount ("fileserver", "/export/fin/work", "/fin/work")
nfsMount ("fileserver", "/export/fin/prod", "/fin/prod")
nfsMount ("fileserver", "/export/fin/devl", "/fin/devl")
nfsMount (&sysBootHost, "/home/ioc", "/home/ioc")

19
network.sls Normal file
View File

@@ -0,0 +1,19 @@
# Accept SLSBASE or INSTBASE
PBASE=0
symFindByName(sysSymTbl,"INSTBASE",&PBASE,0)
symFindByName(sysSymTbl,"SLSBASE",&PBASE,0)
SLSBASE=*PBASE
INSTBASE=*PBASE
# Router for SLS machine net (fails otherwise but that's ok)
routeAdd ("0.0.0.0","172.20.10.1")
# setup mount points (try both possible locations for /ioc)
hostAdd ("slsfs","129.129.145.52")
nfsMount (&sysBootHost, "/home/ioc", "/home/ioc")
nfsMount (&sysBootHost, "/ioc", "/ioc")
nfsMount ("slsfs", "/export/csa/releases/ioc", "/ioc")
nfsMount ("slsfs","/export/csa/releases/work","/work")
nfsMount ("slsfs","/export/csa/releases/prod","/prod")
nfsMount ("slsfs","/export/csa/releases/devl","/devl")
nfsMount ("slsfs","/export/exchange","/exchange")

5
network.trfcb Normal file
View File

@@ -0,0 +1,5 @@
# setup mount points
hostAdd ("fileserver","129.129.145.56")
nfsMount ("fileserver", "/export/trfcb/ioc", "/ioc")
nfsMount ("fileserver", "/export/trfcb/work", "/trfcb/work")
nfsMount (&sysBootHost, "/home/ioc", "/home/ioc")

View File

@@ -8,25 +8,7 @@
# * EPICS the epics release (e.g "R3.13.9")
# * ARCH the vxWorks architecture (e.g. "T1-ppc604")
# Accept SLSBASE or INSTBASE
PBASE=0
symFindByName(sysSymTbl,"INSTBASE",&PBASE,0)
symFindByName(sysSymTbl,"SLSBASE",&PBASE,0)
SLSBASE=*PBASE
INSTBASE=*PBASE
# Router for SLS machine net (fails otherwise but that's ok)
routeAdd ("0.0.0.0","172.20.10.1")
# setup mount points (try both possible locations for /ioc)
hostAdd ("slsfs","129.129.145.52")
nfsMount (&sysBootHost, "/home/ioc", "/home/ioc")
nfsMount (&sysBootHost, "/ioc", "/ioc")
nfsMount ("slsfs", "/export/csa/releases/ioc", "/ioc")
nfsMount ("slsfs","/export/csa/releases/work","/work")
nfsMount ("slsfs","/export/csa/releases/prod","/prod")
nfsMount ("slsfs","/export/csa/releases/devl","/devl")
nfsMount ("slsfs","/export/exchange","/exchange")
< network
STRINGBUFFER=malloc(256)