diff options
author | Michael Neves | 2013-01-03 16:51:17 +0100 |
---|---|---|
committer | Michael Neves | 2013-01-03 16:51:17 +0100 |
commit | 449bc36e72973f151f73fc11901a4ee47192145d (patch) | |
tree | d15ee07cf263bfe29a07b1695809591f651e0022 /mltk | |
parent | add libresolv to list of wanted libs in base (diff) | |
download | tm-scripts-449bc36e72973f151f73fc11901a4ee47192145d.tar.gz tm-scripts-449bc36e72973f151f73fc11901a4ee47192145d.tar.xz tm-scripts-449bc36e72973f151f73fc11901a4ee47192145d.zip |
check if file is ELF fix
Diffstat (limited to 'mltk')
-rwxr-xr-x | mltk | 33 |
1 files changed, 23 insertions, 10 deletions
@@ -1,4 +1,6 @@ +#!/bin/bash # ----------------------------------------------------------------------------- +# # Copyright (c) 2011 - OpenSLX GmbH # # This program is free software distributed under the GPL version 2. @@ -13,27 +15,38 @@ # Mini-Linux Toolkit # # ----------------------------------------------------------------------------- -#!/bin/bash - SELF=$(readlink -f $0) ROOT_DIR=$(dirname ${SELF}) +banner () { + echo -e "\t __ __ __ " + echo -e "\t.--------.| | | |_| |--." + echo -e "\t| || |_| _| < " + echo -e "\t|__|__|__||____|____|__|__|" + echo -e "\t " + echo -e "\t ** OpenSLX Project // 2011 **" + echo -e "\t http://lab.openslx.org/" + echo -e "" +} + print_usage() { echo "Toolkit for creating preboot mini-linux for OpenSLX NG (mltk)" echo "Usage: $(basename ${SELF}) MODULE [OPTION]" - echo -e " MODULE:" - echo -e " \t core \t minimal initramfs (stage 3.1) to mount the system-container (stage 3.2)." - echo -e " \t tools \t minimal systemd-based rootfs including basic tools." + echo " MODULE:" + echo -e " core \t minimal initramfs (stage 3.1) to mount the system-container (stage 3.2)." + echo -e " tools \t minimal systemd-based rootfs including basic tools." echo -e " OPTION:" - echo -e " \t build \t builds [MODULE]" - echo -e " \t clean \t clean build files for [MODULE]" + echo -e " build \t builds [MODULE]" + echo -e " clean \t clean build files for [MODULE]" echo -e "" echo -e " Module specific option:" - echo -e " \t tools \t build [TOOL]" - echo -e " \t \t TOOL can be: \t base, busybox, dbus, udev, systemd, plymouth" + echo -e " tools \t build [TOOL]" + echo -e " TOOL can be: \t base, busybox, dbus, udev, systemd, plymouth" } +banner + if [ "x$1" = "x" ]; then print_usage exit 0 @@ -58,7 +71,7 @@ if [ "x$1" = "xcore" ]; then exit 1 fi elif [ "x$1" = "xtools" ]; then - [ -e ${SETUP_TOOLS} ] && . ${SETUP_TOOLS} + [ -e ${SETUP_TOOLS} ] && . $SETUP_TOOLS shift if [ "x$1" = "xbuild" ]; then # shift away first 2 parameters |