ssh_master() {
log=`basename $1`
- ssh root@$master $* | tee ganeti/$log
+ if [ "$1" == "gnt-instance" ] ; then
+ ssh root@$master $*
+ else
+ ssh root@$master $* | tee ganeti/$log
+ fi
}
+++ /dev/null
-#!/bin/sh -x
-
-. ./0-host.sh
-
-#ssh_host apt-get install --reinstall -y initscripts acpid
-ssh_host lsmod | grep button
-
-ssh_host cat /etc/inittab | tee $host/inittab
-grep -v ^# $host/inittab | grep console || echo "1:2345:respawn:/sbin/getty 38400 console" | tee -a $host/inittab && \
- rsync $host/inittab root@$host:/etc/
-
-ssh_host bak diff /etc/inittab
-ssh_host init q