#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. if [ -f /etc/redhat-release ]; then R=$(cat /etc/redhat-release) arch=$(uname -m) a="a" case "_$arch" in _a*) a="an";; _i*) a="an";; esac NUMPROC=`egrep -c "^cpu[0-9]+" /proc/stat` if [ "$NUMPROC" -gt "1" ]; then SMP="$NUMPROC-processor " if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then a="an" else a="a" fi fi # This will overwrite /etc/issue at every boot. So, make any changes you # want to make to /etc/issue here or you will lose them when you reboot. echo "" > /etc/issue echo "$R" >> /etc/issue echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue cp -f /etc/issue /etc/issue.net echo >> /etc/issue fi touch /var/lock/subsys/local # Start ClusterNFS unfsd (for client-specific root filesystem mounts) /usr/sbin/rpc.nfsd --translate-names /usr/sbin/rpc.mountd # Install Myrinet GM driver cd /home/weaver/gm-1.5_Linux/binary ./GM_INSTALL # Flush filesystem buffers (see man page) sync # Read static GM maps cd /home/weaver/gm-1.5_Linux/binary/sbin ./file_mapper file.args # NOTE: to REGENERATE the static maps and check the network: # (1) ALL HOSTS must be up and running the GM driver # (2) # cd /home/weaver/gm-1.5_Linux/binary/sbin # (3) # ./mapper static.args # (4) # cd /home/weaver/gm-1.5_Linux/binary/bin # (5) # ./gm_board_info # (6) see /home/weaver/gm-1.5_Linux/README-linux # Tune networking parameters for NFS-v3 over TCP echo 262144 > /proc/sys/net/core/rmem_max echo 262144 > /proc/sys/net/core/wmem_max echo 262144 > /proc/sys/net/core/rmem_default echo 262144 > /proc/sys/net/core/wmem_default # Start IP over GM /sbin/ifconfig myri0 192.168.2.254 up # Load hardware monitoring kernel modules (used by lm-sensors software) # I2C adapter drivers modprobe i2c-amd756 # I2C chip drivers # NOTE: the 'init=0' option MUST be given or the system crashes! modprobe w83781d init=0 modprobe eeprom # Start NTP daemon /usr/local/bin/ntpd