3 if [[ $1 == "startx" ]] ; then
6 sed -e 's/#VMNAME#/'$VMNAME'/g' ~/bin/runvm.xbindkeysrc.template > ~/.xbindkeysrc.template.$VMNAME
7 xbindkeys -f ~/.xbindkeysrc.template.$VMNAME
8 # /usr/bin/synergyc -f --debug ERROR --name fujivm 10.11.0.1:24800 &
9 VirtualBox --startvm $VMNAME --fullscreen
10 rm ~/.xbindkeysrc.template.$VMNAME
13 if [[ $2 != "" ]] ; then
14 VMNAME="$(echo $1 | sed -e 's/^'$2'//')"
17 echo "Security check completed."
18 echo "Continue to boot ${VMNAME}?"
20 echo "Booting ${VMNAME}"
21 startx $0 startx $VMNAME >/tmp/runvm.$VMNAME.log 2>&1