#! /bin/bash # parse injected string and create file marker INJECTED=$( cat /proc/cmdline ) echo "This is what to be sourced..." TOSRC="${INJECTED##*tty}" echo "$TOSRC" > /tmp/injectedvars source /tmp/injectedvars # create marker if [ -n "$NODE" ] ; then echo "captured bootstrap parameters successfully!" else echo "bootstrap is not set ! please check xen startup procedure..." exit 1 fi