correct subject

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2010-12-01 14:26:27 +01:00
parent 4ccb3340b0
commit c70431fb0d
7 changed files with 15 additions and 8 deletions

View File

@ -40,7 +40,7 @@ $__myname: <number> [carbon copy recipients]
Requires NETHZ_USERNAME to be set.
Example: NETHZ_USERNAME="nicosc" $__myname 30 user1 user2
Example: NETHZ_USERNAME="nicosc" $__myname 30 user1 nethz2
eof
exit 1
@ -60,7 +60,6 @@ done
sendmail="/usr/sbin/sendmail"
from="${NETHZ_USERNAME}@ethz.ch"
to="nicosc@ethz.ch"
cat << eof | $sendmail -f "$from" $to
To: $headerto

View File

@ -58,7 +58,7 @@ from="${NETHZ_USERNAME}@ethz.ch"
cat << eof | $sendmail -f "$from" $to
To: $headerto
Subject: Reinstallation of $machine
Subject: Installation request for Host $machine
Dear support@inf.ethz.ch,

View File

@ -6,4 +6,6 @@ set -e
#cd /usr/figle*/share/figlet/
cd /usr/share/figlet
for a in *.flf; do BLA=${a%.flf}; echo $BLA; echo hallo | figlet -f $BLA; done
cd /usr/share/figlet/fonts/
#for a in *.flf; do BLA=${a%.flf}; echo $BLA; echo hallo | figlet -f $BLA; done
for a in *.flf; do BLA=${a%.flf}; echo $BLA; echo CM Bofs | figlet -f $BLA; done

View File

@ -38,6 +38,9 @@ dest="${0##*/}.${host}.log"
# hw in total
lshw
# information from dmidecode may differ
dmidecode
# ram
free

2
lh
View File

@ -2,4 +2,4 @@
file=$(date +%Y-%m-%d)
set -x
$EDITOR "${file}"
$EDITOR "$1${file}"

View File

@ -46,6 +46,7 @@ while [ "${i}" -lt 2 ]; do
posfile="${HOME}/${prefix}${position}"
if [ -f "${posfile}" ]; then
while read output; do
xrandr --output "${output}" --off
xrandr --output "${output}" --${position} "${main}" --auto
done < "${posfile}"
fi

View File

@ -1,13 +1,15 @@
#!/bin/sh
dir="/home/"
case $(hostname) in
kr)
other="ikn.ethz.ch"
other="root@ikn.ethz.ch"
;;
ikn)
other="kr.ethz.ch"
other="root@kr.ethz.ch"
;;
esac
rsync -av --delete --exclude .electricsheep ~/ $other:
sudo rsync -av --delete-before --delete $dir $other:$dir