diff --git a/README b/README index 6daa66c..60f457c 100644 --- a/README +++ b/README @@ -32,6 +32,8 @@ gitundo - undo commit. histogram - make and display a histogram on the command line. +memtestiso - ISO-file for Memtest86+. + mirrorpdf - mirror PDF-file horizontally. neno - no error no output. Only print STDERR and STDOUT if the command fails. diff --git a/memtestiso/Makefile b/memtestiso/Makefile new file mode 100644 index 0000000..99220c7 --- /dev/null +++ b/memtestiso/Makefile @@ -0,0 +1,2 @@ +all: + sudo ./build.sh diff --git a/memtestiso/README b/memtestiso/README new file mode 100644 index 0000000..50644e6 --- /dev/null +++ b/memtestiso/README @@ -0,0 +1,13 @@ += ISO file for Memtest86+ V5.31b = + +I could not get the ISO-files on http://www.memtest.org/#downiso to +work, so I built this based on +https://superuser.com/questions/727959/how-to-create-a-bootable-memtest86-on-usb-flash-drive + +Write as: + + zcat memtest-iso.img.gz > /dev/sdX + sync + +Set boot method in BIOS as Legacy boot. + diff --git a/memtestiso/build.sh b/memtestiso/build.sh new file mode 100755 index 0000000..35a81e5 --- /dev/null +++ b/memtestiso/build.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +MEM=5.31b +SYS=6.03 +MEMTESTB=http://www.memtest.org/download/${MEM}/memtest86+-${MEM}.bin.gz +SYSLINUX=https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-${SYS}.tar.xz + +dd if=/dev/zero of=/tmp/loopbackfile.img bs=10M count=1 +loopdev=$(losetup --show -fP /tmp/loopbackfile.img) +parted -s "$loopdev" mklabel msdos mkpart primary fat16 2048s 5mib set 1 boot on +fdisk -l $loopdev +mkfs.vfat -nMEMTEST "$loopdev"p1 +mkdir -p /mnt/memtest +mount "$loopdev"p1 /mnt/memtest + +( + cd /tmp + wget -m ${MEMTESTB} + zcat /tmp/www.memtest.org/download/"$MEM"/memtest86+-"$MEM".bin.gz > /mnt/memtest/memtest + cat >/mnt/memtest/syslinux.cfg <<'!' +PROMPT 0 +TIMEOUT 0 +DEFAULT memtest +LABEL memtest + kernel memtest +! + + wget -m ${SYSLINUX} + cat www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-"$SYS".tar.xz | + tar -xJpf - + dd bs=440 if=syslinux-${SYS}/bios/mbr/mbr.bin of="$loopdev" + syslinux-${SYS}/bios/linux/syslinux -i -s "$loopdev"p1 +) +umount /mnt/memtest +losetup -d "$loopdev" +perl -0777 -pe 's/\0+$//' /tmp/loopbackfile.img >memtest-iso.img diff --git a/memtestiso/memtest-iso.img.gz b/memtestiso/memtest-iso.img.gz new file mode 100644 index 0000000..ea16e19 Binary files /dev/null and b/memtestiso/memtest-iso.img.gz differ diff --git a/teetime/teetime b/teetime/teetime index 2f95a5e..297566c 100755 --- a/teetime/teetime +++ b/teetime/teetime @@ -44,8 +44,8 @@ Instead of overwriting I, append to I. =head1 EXAMPLES - (sleep 0.5; echo After 0.5s; sleep 1.5) | teetime myfile - (sleep 0.5; echo After 2.5s; sleep 1.5) | teetime -a myfile + (sleep 0.5; echo After 0.5s; sleep 1.5; echo After 2s) | teetime myfile + (sleep 0.5; echo After 2.5s; sleep 1.5; echo After 4s) | teetime -a myfile teetime -i myfile =head1 AUTHOR