-
-#----------------------------------------------------------------------
-# General script setup.
-
-log
-log virt-p2v starting up at `date`
-
-# The first and only parameter must be the tty. Connect
-# stdin/stdout/stderr to this device.
-if [ -n "$1" ]; then
- log connecting to /dev/$1
- exec </dev/$1 &>/dev/$1
-fi
-
-# We can safely write files into /tmp without modifying anything.
-cd /tmp
-