rules/memtest86+: Added script to start memtest.
This commit is contained in:
parent
a6564e1b5d
commit
d4be30bec6
@ -28,4 +28,5 @@ build()
|
|||||||
target_install()
|
target_install()
|
||||||
{
|
{
|
||||||
$cmd_cp ./memtest.bin $cfg_dir_rootfs/boot/
|
$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 -
|
||||||
}
|
}
|
||||||
|
14
rules/memtest86+/fs/usr/bin/memtester
Normal file
14
rules/memtest86+/fs/usr/bin/memtester
Normal 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
|
Reference in New Issue
Block a user