correct subject
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
4ccb3340b0
commit
c70431fb0d
7 changed files with 15 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -38,6 +38,9 @@ dest="${0##*/}.${host}.log"
|
|||
# hw in total
|
||||
lshw
|
||||
|
||||
# information from dmidecode may differ
|
||||
dmidecode
|
||||
|
||||
# ram
|
||||
free
|
||||
|
||||
|
|
2
lh
2
lh
|
@ -2,4 +2,4 @@
|
|||
file=$(date +%Y-%m-%d)
|
||||
|
||||
set -x
|
||||
$EDITOR "${file}"
|
||||
$EDITOR "$1${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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue