Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting
diff --git a/debian/control b/debian/control
index 65f46e4..64afd84 100644
--- a/debian/control
+++ b/debian/control
@@ -18,3 +18,11 @@ Description: a collection of programs to put heavy load on CPU
  putting stress on the CPU itself, cooling system, motherboard. This
  may cause data loss (filesystem corruption) and possibly permanent 
  damage to electronic components. Use at your own risk.
+
+Package: cpuburn-udeb
+XC-Package-Type: udeb
+XB-Installer-Menu-Item: 2600
+Section: debian-installer
+Architecture: amd64 i386 hurd-i386 kfreebsd-i386 kfreebsd-amd64
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Performs hardware burn-in
diff --git a/debian/cpuburn-udeb.dirs b/debian/cpuburn-udeb.dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/cpuburn-udeb.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/cpuburn-udeb.postinst b/debian/cpuburn-udeb.postinst
new file mode 100644
index 0000000..10e411a
--- /dev/null
+++ b/debian/cpuburn-udeb.postinst
@@ -0,0 +1,141 @@
+#!/bin/sh
+
+#DEBHELPER#
+
+. /usr/share/debconf/confmodule
+
+db_capb backup progresscancel
+
+set -eu
+
+TEMPLATE_ROOT=cpuburn-udeb
+
+STATE=1
+
+while [ "$STATE" -ge 1 -a "$STATE" -le 4 ];
+do
+	case "$STATE" in
+		1)
+			db_input critical $TEMPLATE_ROOT/confirm || true
+			;;
+		2)
+			# Check confirmation before continuing
+			db_get $TEMPLATE_ROOT/confirm
+			test "$RET" = "true" || exit 0
+
+			db_input critical $TEMPLATE_ROOT/type || true
+			;;
+		3)
+			db_input critical $TEMPLATE_ROOT/duration || true
+			;;
+		4)
+			db_get $TEMPLATE_ROOT/type
+			BURN_TYPE="$RET"
+
+			db_get $TEMPLATE_ROOT/duration
+			BURN_DURATION="$RET"
+
+			# Parse inputs
+			case "$BURN_TYPE" in
+				BX|K7|K6|MMX|P5|P6)
+					;;
+				*)
+					echo "Error parsing burn type '$BURN_DURATION'"
+					exit 1
Do you need help?X
+ ;; + esac + + QUANTITY=$(echo $BURN_DURATION | sed -e 's/^\([0-9]*\).*/\1/') + case "$QUANTITY" in + [0-9]*) + ;; + *) + echo "Error parsing duration '$BURN_DURATION'" + exit 1 + ;; + esac + + UNIT=$(echo $BURN_DURATION | sed -e 's/.*\([sSmMhHdD]\)$/\1/g' | tr A-Z a-z) + case "$UNIT" in + s) + SECONDS=$QUANTITY + ;; + m) + SECONDS=$(($QUANTITY * 60)) + ;; + h) + SECONDS=$(($QUANTITY * 60 * 60)) + ;; + d) + SECONDS=$(($QUANTITY * 60 * 60 * 24)) + ;; + *) + echo "Error parsing duration '$BURN_DURATION'" + exit 1 + ;; + esac + + db_progress START 0 $SECONDS $TEMPLATE_ROOT/progress/title + + # Start a burn process for each core/processor, keeping + # track of their pids. + NUM_CPUS=$(grep -c "^processor" /proc/cpuinfo) + PID_LIST="" + while [ $NUM_CPUS -gt 0 ]; + do + burn$BURN_TYPE & + PID_LIST="$PID_LIST $!" + NUM_CPUS=$(($NUM_CPUS - 1)) + done + + # We need to augment the progress bar with something that will + # stop moving when our system locks. Using the progress bar would + # not be effective for this during long burns. + # + # An alternative solution would be to display the amount of time + # left for the burn-in, which the user can see decrementing as a + # sign that their machine is still alive. + STEP=1 + while [ $SECONDS -gt 0 ] + do + case $STEP in + 1) + PROGRESS="/" + ;; + 2) + PROGRESS="-" + ;; + 3) + PROGRESS="\\" + ;; + 4) + PROGRESS="|" + STEP=0 + ;; + esac + STEP=$(($STEP + 1)) + + db_subst $TEMPLATE_ROOT/progress/step PROGRESS "${PROGRESS}" + db_progress INFO $TEMPLATE_ROOT/progress/step || break + db_progress STEP 1 || break + + SECONDS=$(($SECONDS - 1))
Do you need more help?X
+ sleep 1 + done + + for PID in $PID_LIST; + do + kill $PID || true + done + + db_progress STOP + ;; + esac + + if db_go; + then + STATE=$(($STATE + 1)) + else + STATE=$(($STATE - 1)) + fi +done diff --git a/debian/cpuburn-udeb.templates b/debian/cpuburn-udeb.templates new file mode 100644 index 0000000..da9a905 --- /dev/null +++ b/debian/cpuburn-udeb.templates @@ -0,0 +1,42 @@ +Template: debian-installer/cpuburn-udeb/title +Type: text +Description: Perform hardware burn-in + +Template: cpuburn-udeb/confirm +Type: boolean +Default: false +_Description: Are you sure you want to perform a burn test? + This may be dangerous for your system. + . + This process is designed to heavily load CPU chips. Undercooled, + overclocked or otherwise weak systems may fail causing possibly + permanent damage to electronic components. Use at your own risk. + +Template: cpuburn-udeb/type +Type: select +Choices: P5, P6, K6, K7, MMX, BX +_Description: Burn-in type: + You should select a burn-in type suitable to your system. + . + The 'P5' test type is optimized for Intel Pentium processors, + 'P6' for Intel Pentium Pro, Pentium II & III and Celeron CPUs, + 'K6' for AMD K6 processors, and 'K7' for AMD Athlon and Duron + processors. + . + The 'MMX' variant is to test cache and memory interfaces on all + CPUs with MMX, and 'BX' is an alternate cache and memory test for + Intel CPUs. + +Template: cpuburn-udeb/duration +Type: select +Default: 30m +Choices: 10m, 30m, 1h, 6h, 24h +_Description: Burn-in duration + +Template: cpuburn-udeb/progress/title +Type: text +Description: Performing hardware burn-in + +Template: cpuburn-udeb/progress/step +Type: text +Description: Performing hardware burn-in. This may take some time... ${PROGRESS} diff --git a/debian/rules b/debian/rules
Can we help you?X
index 06f202e..df55cc8 100755 --- a/debian/rules +++ b/debian/rules @@ -30,6 +30,7 @@ install: build for i in burnP5 burnP6 burnK6 burnK7 burnBX burnMMX ; do \ cp $(CURDIR)/$$i $(CURDIR)/debian/cpuburn/usr/bin ; \ + cp $(CURDIR)/$$i $(CURDIR)/debian/cpuburn-udeb/usr/bin ; \ done # Build architecture-independent files here.

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library