#!/bin/bash # This Script is licensed by GPL3 or Higher # VARIABLES CONFFILE="/etc/lliurex/llxdev.conf" LIBFILE="/usr/share/lliurex/lliurex-build-essential/llxdev.sh" _usage(){ CMD="$(basename "$0")" echo "Usage: $CMD [ --force ] fix " echo " $CMD check " exit 0 } _myecho(){ echo "++++++++++++++++++++++" echo "$@" echo "++++++++++++++++++++++" } _die(){ # DIE function to exit echo $@ && exit 1 } # #MAIN # # Source of LIBFILE [ -f "$LIBFILE" ] || _die "Libfile: "$LIBFILE" not present...nothing to do" . "$LIBFILE" # Source of CONFIGURATION [ -f "$CONFFILE" ] || _die "Conffile: "$CONFFILE" not present...nothing to do" . "$CONFFILE" while [ $# -ge 0 ] ; do case $1 in *)_usage ;; esac done exit 0