view more/test.sh @ 1744:4c3164f0d2c2 draft

As long as current kernels have an overlay filesystem, might as well enable it.
author Rob Landley <rob@landley.net>
date Sun, 22 Feb 2015 17:22:00 -0600
parents 95f662f66fe4
children
line wrap: on
line source

#!/bin/bash

# Run a command with sources/include.sh and an architecture loaded

if [ $# -eq 0 ]
then
  echo "Usage: [STAGE_NAME=...] more/test.sh ARCH COMMAND..." >&2
  exit 1
fi

. sources/include.sh || exit 1

[ "$1" != "host" ] && NO_CLEANUP=1 load_target "$1"
shift
eval "$@"