/usr/share/faumachine/experiments/test-fi-smart-step2/generate.in is in faumachine-data 20110812-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | # $Id: generate.in,v 1.7 2009-10-16 08:55:27 potyra Exp $
#
# Copyright (C) 2009 FAUmachine Team <info@faumachine.org>.
# This program is free software. You can redistribute it and/or modify it
# under the terms of the GNU General Public License, either version 2 of
# the License, or (at your option) any later version. See COPYING.
power_on
#
# wait for login screen
#
wait_ppm 01-Welcome.png 10min
#
# switch to vt-1
#
press_alt
press_ctrl
type "\10"
release_ctrl
release_alt
#
# wait for login prompt
#
wait_asc login 2min
#
# login as root
#
type "root\0d"
wait_asc Password 1min
type "WeV0te4u!\0d"
#
# wait for bash prompt
#
wait_asc ~# 2min
#
# go to extracted kernel
#
type "cd /mnt/linux-source-2.6.26\0d"
wait_asc 2.6.26# 1min
#
# generate defconfig
#
type "make defconfig\0d"
wait_asc 2.6.26# 10min
#
# compile the kernel
#
type "make\0d"
wait_asc 2.6.26# 240min
#
# check if a mail was sent
#
type "cat /var/mail/demo\0d"
wait_asc 2.6.26# 1min
sshot
type "clear\0d"
#
# check logs
#
type "grep '/dev/hdb, FAILED SMART' /var/log/daemon.log "
type "> /tmp/err.log\0d"
wait_asc 2.6.26# 1min
type "clear\0d"
type "cat /tmp/err.log\0d"
wait_asc 2.6.26# 1min
sshot
#
# run badblocks on the device and check again
#
wait_asc 2.6.26# 2min
type "badblocks /dev/hdb\0d"
wait_asc 2.6.26# 10min
#
# let some time pass
#
type "sleep 120\0d"
wait_asc 2.6.26# 3min
#
# check again if a mail was sent
#
type "cat /var/mail/demo\0d"
wait_asc 2.6.26# 1min
sshot
type "clear\0d"
#
# check logs again
#
wait_asc 2.6.26# 1min
type "grep '/dev/hdb, FAILED SMART' /var/log/daemon.log "
type "> /tmp/err.log\0d"
wait_asc 2.6.26# 1min
type "clear\0d"
wait_asc 2.6.26# 1min
type "cat /tmp/err.log\0d"
wait_asc 2.6.26# 1min
sshot
#
# power down node
#
type "poweroff\0d"
wait_asc Deactivating swap...done. 5min
delay 1min
|