Merge "inital Makefile struct with bm metal3" into dev/icn-v0.1.0
[icn.git] / env / metal3 / 03_launch_prereq.sh
similarity index 96%
rename from env/03_launch_prereq.sh
rename to env/metal3/03_launch_prereq.sh
index 544ae0a..95c17f0 100755 (executable)
@@ -1,11 +1,13 @@
 #!/bin/bash
 set -xe
 
-source lib/logging.sh
-source lib/common.sh
+LIBDIR="$(dirname "$PWD")"
+
+source $LIBDIR/lib/logging.sh
+source $LIBDIR/lib/common.sh
 
 if [[ $EUID -ne 0 ]]; then
-    echo "confgiure script must be run as root"
+    echo "launch script must be run as root"
     exit 1
 fi