3
0

umlwrapper.sh 346 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. # Wrapper for User Mode Linux emulation environment
  3. RUNFILE="$(pwd)/${1}.testroot"
  4. if [ -z "$RUNFILE" ] || [ ! -x "$RUNFILE" ]
  5. then
  6. echo "Can't run '$RUNFILE'"
  7. exit 1
  8. fi
  9. shift
  10. if [ -z $(which linux) ]
  11. then
  12. echo "No User Mode Linux."
  13. exit 1;
  14. fi
  15. linux rootfstype=hostfs rw init="$RUNFILE" TESTDIR=`pwd` PATH="$PATH" $* quiet