rules/memtest86+: Added script to start memtest.

This commit is contained in:
Tiago Marques 2017-08-12 08:24:17 +01:00
parent a6564e1b5d
commit d4be30bec6
2 changed files with 15 additions and 0 deletions

View File

@ -28,4 +28,5 @@ build()
target_install()
{
$cmd_cp ./memtest.bin $cfg_dir_rootfs/boot/
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
}

View File

@ -0,0 +1,14 @@
#! /bin/bash
echo "Starting memtest in 10 seconds (requires reboot), Ctrl-C to cancel..."
for r in 0 1 2 3 4 5 6 7 8 9; do
printf "."
sleep 1
done
mount -o remount,rw /
extlinux -o "memtest" /boot/extlinux/
mount -o remount,ro /
echo "* Rebooting now"
reboot