All pastes #981564 Raw Edit

Something

public text v1 · immutable
·published 2008-04-11 21:49 UTC
rendered paste body
#! /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