correct subject
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
4ccb3340b0
commit
c70431fb0d
|
@ -40,7 +40,7 @@ $__myname: <number> [carbon copy recipients]
|
||||||
|
|
||||||
Requires NETHZ_USERNAME to be set.
|
Requires NETHZ_USERNAME to be set.
|
||||||
|
|
||||||
Example: NETHZ_USERNAME="nicosc" $__myname 30 user1 user2
|
Example: NETHZ_USERNAME="nicosc" $__myname 30 user1 nethz2
|
||||||
|
|
||||||
eof
|
eof
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -60,7 +60,6 @@ done
|
||||||
|
|
||||||
sendmail="/usr/sbin/sendmail"
|
sendmail="/usr/sbin/sendmail"
|
||||||
from="${NETHZ_USERNAME}@ethz.ch"
|
from="${NETHZ_USERNAME}@ethz.ch"
|
||||||
to="nicosc@ethz.ch"
|
|
||||||
|
|
||||||
cat << eof | $sendmail -f "$from" $to
|
cat << eof | $sendmail -f "$from" $to
|
||||||
To: $headerto
|
To: $headerto
|
||||||
|
|
|
@ -58,7 +58,7 @@ from="${NETHZ_USERNAME}@ethz.ch"
|
||||||
|
|
||||||
cat << eof | $sendmail -f "$from" $to
|
cat << eof | $sendmail -f "$from" $to
|
||||||
To: $headerto
|
To: $headerto
|
||||||
Subject: Reinstallation of $machine
|
Subject: Installation request for Host $machine
|
||||||
|
|
||||||
Dear support@inf.ethz.ch,
|
Dear support@inf.ethz.ch,
|
||||||
|
|
||||||
|
|
|
@ -6,4 +6,6 @@ set -e
|
||||||
|
|
||||||
#cd /usr/figle*/share/figlet/
|
#cd /usr/figle*/share/figlet/
|
||||||
cd /usr/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
|
# hw in total
|
||||||
lshw
|
lshw
|
||||||
|
|
||||||
|
# information from dmidecode may differ
|
||||||
|
dmidecode
|
||||||
|
|
||||||
# ram
|
# ram
|
||||||
free
|
free
|
||||||
|
|
||||||
|
|
2
lh
2
lh
|
@ -2,4 +2,4 @@
|
||||||
file=$(date +%Y-%m-%d)
|
file=$(date +%Y-%m-%d)
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
$EDITOR "${file}"
|
$EDITOR "$1${file}"
|
||||||
|
|
|
@ -46,6 +46,7 @@ while [ "${i}" -lt 2 ]; do
|
||||||
posfile="${HOME}/${prefix}${position}"
|
posfile="${HOME}/${prefix}${position}"
|
||||||
if [ -f "${posfile}" ]; then
|
if [ -f "${posfile}" ]; then
|
||||||
while read output; do
|
while read output; do
|
||||||
|
xrandr --output "${output}" --off
|
||||||
xrandr --output "${output}" --${position} "${main}" --auto
|
xrandr --output "${output}" --${position} "${main}" --auto
|
||||||
done < "${posfile}"
|
done < "${posfile}"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
dir="/home/"
|
||||||
|
|
||||||
case $(hostname) in
|
case $(hostname) in
|
||||||
kr)
|
kr)
|
||||||
other="ikn.ethz.ch"
|
other="root@ikn.ethz.ch"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
ikn)
|
ikn)
|
||||||
other="kr.ethz.ch"
|
other="root@kr.ethz.ch"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
rsync -av --delete --exclude .electricsheep ~/ $other:
|
sudo rsync -av --delete-before --delete $dir $other:$dir
|
||||||
|
|
Loading…
Reference in New Issue