Removed breakin from this project and into breakin.git
Kyle Sheumaker [Thu, 17 Jul 2008 03:42:24 +0000 (22:42 -0500)]
etc/breakin/burnin/badblocks [deleted file]
etc/breakin/burnin/ecc [deleted file]
etc/breakin/burnin/hpl [deleted file]
etc/breakin/burnin/mcelog [deleted file]
etc/breakin/dumplog.sh [deleted file]
etc/breakin/hardware.sh [deleted file]
etc/breakin/network.sh [deleted file]
etc/breakin/startup.sh [deleted file]
etc/breakin/stop.sh [deleted file]
etc/startup.sh
manifest

diff --git a/etc/breakin/burnin/badblocks b/etc/breakin/burnin/badblocks
deleted file mode 100755 (executable)
index e2678ec..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/ash
-
-. /etc/library.sh
-
-# read in our hardware configs
-if [ -e /var/run/breakin.dat ]
-then
-       . /var/run/breakin.dat
-fi
-
-FOUND_ERROR=0
-
-# if we don't have any disks - this should never run again
-if [ "${DISK_QTY}" -le "0" ]
-then
-       echo "MSG: No disk devices found"
-       exit 255
-fi
-
-I=0
-while [ "${I}" -lt "${DISK_QTY}" ];
-do
-       DRIVE_NAME=`eval echo \\\$DISK_${I}_NAME`
-
-       /usr/bin/badblocks -v /dev/${DRIVE_NAME} > /tmp/badblocks.${DRIVE_NAME}.log 2>&1
-       if [ "$?" != 0 ]
-       then
-               echo "Disk drive check failed on device ${DRIVE_NAME}"
-               FOUND_ERROR=1
-       fi
-       I=`expr ${I} + 1`
-done
-
-if [ "${FOUND_ERROR}" = "0" ]
-then
-       echo "MSG: No disk errors found"
-fi
diff --git a/etc/breakin/burnin/ecc b/etc/breakin/burnin/ecc
deleted file mode 100755 (executable)
index e282262..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/ash
-
-. /etc/library.sh
-
-# read in our hardware configs
-if [ -e /var/run/breakin.dat ]
-then
-       . /var/run/breakin.dat
-fi
-
-if [ ! -d /sys/devices/system/edac/mc/mc0 ]
-then
-       echo "MSG: No support for ECC checking on this system"
-       exit 255
-fi
-
-# now we look at each file in mc
-
-
-COUNT=0
-FOUND_ERROR=0
-
-ERROR_STRING=""
-for i in /sys/devices/system/edac/mc/mc?
-do
-    CE_COUNT=`cat ${i}/ce_count`
-    UE_COUNT=`cat ${i}/ue_count`
-    ERR_COUNT=`expr ${CE_COUNT} + ${UE_COUNT}`
-    
-    if [ "${ERR_COUNT}" -gt 0 ]
-    then
-        FOUND_ERROR=1
-        for j in ${i}/csrow?
-        do
-            CE_COUNT=`cat ${j}/ce_count`
-                   UE_COUNT=`cat ${j}/ue_count`
-            ERR_COUNT=`expr ${CE_COUNT} + ${UE_COUNT}`
-                   MC=`basename ${i}`
-                   CSROW=`basename ${j}`
-            ERROR_STRING="${MC}:${CSROW} error counter at ${ERR_COUNT}"
-            echo ${ERROR_STRING}
-        done
-    fi
-done
-
-sleep 10
-
-if [ "${FOUND_ERROR}"  = "0" ]
-then
-       echo "MSG: No ECC errors found"
-fi
-exit ${FOUND_ERROR}
diff --git a/etc/breakin/burnin/hpl b/etc/breakin/burnin/hpl
deleted file mode 100755 (executable)
index c9857aa..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-#!/bin/ash
-
-. /etc/library.sh
-
-# read in our hardware configs
-if [ -e /var/run/breakin.dat ]
-then
-       . /var/run/breakin.dat
-fi
-
-BINARY="xhpl.amd"
-RUNNING_JOB=""
-
-echo "${CPU_MODEL}" | grep "Intel" > /dev/null 2>&1
-if [ "$?" = "0" ]
-then
-       BINARY="xhpl.intel"
-fi
-
-# the top template
-cat /usr/local/breakin/hpl/HPL-top.txt > /usr/local/breakin/hpl/HPL.dat
-
-# we first figure out our N based on the ammount of RAM we have
-N_SIZE=`/usr/local/bin/hpl_calc_n ${MEM_TOTAL}`
-#if [ ${BINARY} = "xhpl.amd" ]
-#then
-#      N_SIZE=$(($((N_SIZE / 3)) * 2))
-#fi
-
-echo "${N_SIZE}         Ns" >> /usr/local/breakin/hpl/HPL.dat
-
-cat /usr/local/breakin/hpl/HPL-middle.txt >> /usr/local/breakin/hpl/HPL.dat
-
-if [ "${CPU_QTY}" = "1" ]
-then
-       echo "1     Ps" >> /usr/local/breakin/hpl/HPL.dat       
-       echo "1     Qs" >> /usr/local/breakin/hpl/HPL.dat       
-
-elif [ "${CPU_QTY}" = "2" ]
-then
-
-       echo "2     Ps" >> /usr/local/breakin/hpl/HPL.dat       
-       echo "1     Qs" >> /usr/local/breakin/hpl/HPL.dat       
-
-elif [ "${CPU_QTY}" = "4" ]
-then
-
-       echo "2     Ps" >> /usr/local/breakin/hpl/HPL.dat       
-       echo "2     Qs" >> /usr/local/breakin/hpl/HPL.dat       
-
-elif [ "${CPU_QTY}" = "8" ]
-then
-
-       echo "4     Ps" >> /usr/local/breakin/hpl/HPL.dat       
-       echo "2     Qs" >> /usr/local/breakin/hpl/HPL.dat       
-
-elif [ "${CPU_QTY}" = "16" ]
-then
-
-       echo "4     Ps" >> /usr/local/breakin/hpl/HPL.dat       
-       echo "4     Qs" >> /usr/local/breakin/hpl/HPL.dat       
-elif [ "${CPU_QTY}" = "32" ]
-then
-
-       echo "8     Ps" >> /usr/local/breakin/hpl/HPL.dat       
-       echo "4     Qs" >> /usr/local/breakin/hpl/HPL.dat       
-fi
-cat /usr/local/breakin/hpl/HPL-bottom.txt >> /usr/local/breakin/hpl/HPL.dat
-
-
-OMP_NUM_THREADS=1
-GOTO_NUM_THREADS=1
-export OMP_NUM_THREADS GOTO_NUM_THREADS
-
-LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
-export LD_LIBRARY_PATH
-
-cd /usr/local/breakin/hpl
-if [ -x /usr/local/bin/${BINARY} ]
-then
-       /usr/local/bootimage-mpich/bin/mpirun -np ${CPU_QTY} /usr/local/bin/${BINARY} > /tmp/hpl.log 2>&1
-else
-       echo "Binary for this host CPU variant is not available."
-fi
-
-if [ "$?" -ne 0 ]
-then
-       cat /tmp/hpl.log > /errors/hpl.log
-       echo "test failed possible memory or cpu errors" 
-       exit 1
-else
-       GFLOPS=`grep ^WR /tmp/hpl.log | tail -1 | awk '{print $7}'`
-       echo "MSG: Passed (${GFLOPS} GFLOPS)" 
-       exit 0
-fi
-done
-
-sleep 1
-killall ${BINARY} > /dev/null 2>&1
-sleep 5
-
diff --git a/etc/breakin/burnin/mcelog b/etc/breakin/burnin/mcelog
deleted file mode 100755 (executable)
index 669cd32..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/ash
-# read /dev/mcelog every 5 seconds because that's the kernel interval
-
-. /etc/library.sh
-
-FOUND_ERROR=0
-
-OUTPUT=`/usr/bin/mcelog --dmi`
-RETVAL=$?
-if [ $RETVAL = 1 ]
-then
-
-       msg "mcelog couldn't access mce, mem, or dmi data"
-       exit 255
-
-elif [ $RETVAL = 0 ]
-then
-       if [ -n "${OUTPUT}" ]
-       then
-               FOUND_ERROR=1
-               echo "${OUTPUT}"
-       fi
-
-fi
-sleep 5
-exit $FOUND_ERROR 
diff --git a/etc/breakin/dumplog.sh b/etc/breakin/dumplog.sh
deleted file mode 100755 (executable)
index f40cb61..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/ash
-
-trymount() {
-       DEV_NAME=$1
-       #source /tmp/vol_id.tmp # might use these variables some day
-       mount /dev/${DEV_NAME} /var/snapshot
-       if [ $? != 0 ]
-       then
-               echo "Mount error for found USB device."
-               return 1
-       fi
-       echo "USB snapshot device found at ${DEV_NAME}."
-       
-       echo "==== INFO ===" > /var/snapshot/breakin.dmp
-       echo "Breakin version: 2.2" >> /var/snapshot/breakin.dmp
-       uname -a >> /var/snapshot/breakin.dmp
-       echo "==== breakin.dat ====" >> /var/snapshot/breakin.dmp
-       cat /var/run/breakin.dat >> /var/snapshot/breakin.dmp
-       echo "==== breakin.log ====" >> /var/snapshot/breakin.dmp
-       cat /var/logdev/breakin.log >> /var/snapshot/breakin.dmp
-       echo "==== syslog ====" >> /var/snapshot/breakin.dmp
-       cat /var/log/messages >> /var/snapshot/breakin.dmp
-       echo "==== cmdline ====" >> /var/snapshot/breakin.dmp
-       cat /proc/cmdline >> /var/snapshot/breakin.dmp
-       echo "==== cpuinfo ====" >> /var/snapshot/breakin.dmp
-       cat /proc/cpuinfo >> /var/snapshot/breakin.dmp
-       echo "==== partitions ====" >> /var/snapshot/breakin.dmp
-       cat /proc/partitions >> /var/snapshot/breakin.dmp
-       echo "==== PCI ====" >> /var/snapshot/breakin.dmp
-       lspci -vv >> /var/snapshot/breakin.dmp
-       echo "==== dmi ====" >> /var/snapshot/breakin.dmp
-       /usr/bin/dmidecode >> /var/snapshot/breakin.dmp
-
-       sync
-
-       umount /var/snapshot
-
-       echo "Data written to 'breakin.dmp', safe to remove USB device."
-       exit 0
-}
-
-for i in `ls -1d /sys/block/sd[a-z] /sys/block/hd[a-z] 2>/dev/null`
-do
-       REMOVABLE=$(< ${i}/removable)
-       if [ "${REMOVABLE}" != 1 ]
-       then
-               ls -l ${i}/device | grep usb > /dev/null
-               if [ $? != 0 ]
-               then
-                       continue # skip non-removable, non-usb devices
-               fi
-       fi
-       DEV_NAME=`basename ${i}`
-       vol_id -x /dev/${DEV_NAME} > /tmp/vol_id.tmp
-       if [ $? != 0 ] # no file system found
-       then
-               for j in `ls -1d ${i}/?d?[0-9] 2>/dev/null`
-               do
-                       DEV_NAME=`basename ${j}`
-                       vol_id -x /dev/${DEV_NAME} > /tmp/vol_id.tmp
-                       if [ $? = 0 ]
-                       then
-                               trymount $DEV_NAME
-                       fi
-               done
-       else # found file system
-               trymount $DEV_NAME
-       fi
-done
-
-echo "No USB device found."
-exit 1
-
diff --git a/etc/breakin/hardware.sh b/etc/breakin/hardware.sh
deleted file mode 100755 (executable)
index 4670ed9..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/ash
-
-
-# this has been removed and added to startup instead of inside of breakin
-
-exit
diff --git a/etc/breakin/network.sh b/etc/breakin/network.sh
deleted file mode 100755 (executable)
index 49daa82..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-#!/bin/ash
-
-. /etc/library.sh
-
-NET_MODULE_PATH="/lib/modules/`uname -r`/kernel/drivers/net"
-
-dhcp_on_interface() {
-       INTERFACE=${1}
-
-
-       # this is a stop gap for my laptop
-       if [ "${INTERFACE}" = "ath0" ]
-       then
-               return 1
-       fi
-
-       msg -n "Trying DHCP on ${i} interface"
-
-       /sbin/udhcpc -i ${INTERFACE} -n -s /etc/ifup.udhcp.sh \
-               -p /tmp/dhcp.${INTERFACE}.pid >> /tmp/stdout.log 2>> /tmp/stderr.log
-
-       if [ "$?" = 0 ]
-       then
-               . /tmp/network.dhcp
-               ok_msg
-               return 0
-       else
-               fail_msg
-               return 1
-       fi
-}
-
-header "Loading network card modules"
-
-for i in `find ${NET_MODULE_PATH} -name \*.ko`
-do
-       load_module "${i}"
-done
-
-header "Finding ethernet devices"
-
-NET_DEVICES=`/sbin/ifconfig -a | grep "^[a-z]" | cut -d" " -f1`
-NET_DEVICE_COUNT=0
-NET_DEVICE=""
-
-for i in ${NET_DEVICES}
-do
-
-       # we want to skip the loopback interfaces since they don't really count
-       if [ "${i}" = "lo" ]
-       then
-               continue
-       fi
-
-       NET_DEVICE_COUNT=`expr ${NET_DEVICE_COUNT} + 1`
-
-       msg -n "Checking link status for ${i}"
-       /bin/mii-diag -s ${i} >> /tmp/stdout.log 2>> /tmp/stderr.log
-
-       if [ "$?" != "0" ];
-       then
-               fail_msg
-       else
-               ok_msg
-               dhcp_on_interface ${i}
-               if [ "$?" = "0" ]
-               then
-                       NET_DEVICE="${i}"
-               fi
-       fi
-done
-
-if [ "${NET_DEVICE_COUNT}" = "0" ];
-then
-       fatal_error "No network devices found on your system"
-fi
-
-if [ "${NET_DEVICE}" = "" ];
-then
-       msg ""
-       msg "Unable to find interface with link, manually trying each interface"
-       for i in ${NET_DEVICES}
-       do
-               if [ "${i}" = "lo" ]
-               then
-                       continue
-               fi
-
-               dhcp_on_interface ${i}
-               if [ "$?" = "0" ]
-               then
-                       NET_DEVICE="${i}"
-                       break
-               fi
-       done
-fi
-
-if [ "${NET_DEVICE}" = "" ];
-then
-       fatal_error "DHCP server did not respond on any network interface"
-fi
-
-msg -n "Setting hostname to be HW address  "
-HOST=`echo ${NET_MACADDR} | sed 's/://g'`
-msg -n " ${NET_MACADDR}"
-hostname ${HOST} >> /tmp/stdout.log 2> /tmp/stderr.log
-if [ "$?" = 0 ]
-then
-       ok_msg
-else
-       fail_msg
-fi
-
-header "Network Settings"
-
-msg "Network interface:  ${NET_INTERFACE}"
-msg "       IP address:  ${NET_IPADDR}"
-msg "      Subnet mask:  ${NET_SUBNET}"
-msg "          Gateway:  ${NET_ROUTER}"
-msg " Hardware address:  ${NET_MACADDR}"
-
-breakin_start
-
-exit 0
diff --git a/etc/breakin/startup.sh b/etc/breakin/startup.sh
deleted file mode 100755 (executable)
index f7bd4d9..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/ash
-
-ARGS=""
-
-if [ "${_update_interval}" != "" ]
-then
-       ARGS="${ARGS} --update_interval ${_update_interval}"
-fi
-
-if [ "${_update_url}" != "" ]
-then
-       ARGS="${ARGS} --update_url ${_update_url}"
-fi
-
-if [ "${_sshpasswd}" != "" ]
-then
-       ARGS="${ARGS} --ssh"
-fi
-
-if [ "${_console}" != "" ]
-then
-        PORT=`echo ${CONSOLE} | cut -d"," -f1`
-        BAUD=`echo ${CONSOLE} | cut -d"," -f2`
-
-       if [ "${PORT}" = "ttyS0" ]
-       then
-               ARGS="${ARGS} --serialdev=/dev/${PORT} --baud=${BAUD}"
-       fi
-fi
-
-exec /usr/local/bin/breakin ${ARGS}
diff --git a/etc/breakin/stop.sh b/etc/breakin/stop.sh
deleted file mode 100755 (executable)
index 17cb05f..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/ash
-sync
-umount /var/logdev
-echo "Breakin was stopped"
index f61cb22..02e8ffc 100755 (executable)
@@ -48,4 +48,10 @@ then
        exit
 fi
 
-/etc/${_startup}/startup.sh
+if [ ! -f /etc/${_startup}/startup.sh ]
+then
+       echo "Can't find the startup option specified on the kernel command line"
+       exit
+else
+       /etc/${_startup}/startup.sh
+fi
index 3cbd04a..5854288 100644 (file)
--- a/manifest
+++ b/manifest
 644:./etc/inittab
 644:./etc/passwd
 644:./etc/mtab
-755:./etc/breakin/stop.sh
-755:./etc/breakin/burnin/mcelog
-755:./etc/breakin/burnin/badblocks
-755:./etc/breakin/burnin/ecc
-755:./etc/breakin/burnin/hpl
-755:./etc/breakin/network.sh
-755:./etc/breakin/startup.sh
-755:./etc/breakin/hardware.sh
-755:./etc/breakin/dumplog.sh
 755:./etc/resumescreen
 644:./etc/ld.so.conf
 755:./etc/init.d/rcS