From b5ab4f1ec94f4650996b5e4a80d70bdcbfa18b98 Mon Sep 17 00:00:00 2001 From: 6543 Date: Mon, 30 Apr 2018 18:12:45 +0200 Subject: [PATCH] - bugfix '"' - def lib-header --- doc/lib-header.txt | 6 ++++++ src/{functions => func}/chroot_clean | 0 src/{dist => proj}/desinfect17 | 0 src/{dist => proj}/ubuntu.16.04 | 0 src/remaster.sh | 3 ++- 5 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 doc/lib-header.txt rename src/{functions => func}/chroot_clean (100%) rename src/{dist => proj}/desinfect17 (100%) rename src/{dist => proj}/ubuntu.16.04 (100%) diff --git a/doc/lib-header.txt b/doc/lib-header.txt new file mode 100644 index 0000000..02f097a --- /dev/null +++ b/doc/lib-header.txt @@ -0,0 +1,6 @@ +#!/bin/bash +#remaster lib +[ -d "$LIBDR"] || export LIBDIR="/usr/lib/remaster/" +[ -d "$LIBDR"] || { echo "LIBDR not exist"; exit 1; } + +#beginn func diff --git a/src/functions/chroot_clean b/src/func/chroot_clean similarity index 100% rename from src/functions/chroot_clean rename to src/func/chroot_clean diff --git a/src/dist/desinfect17 b/src/proj/desinfect17 similarity index 100% rename from src/dist/desinfect17 rename to src/proj/desinfect17 diff --git a/src/dist/ubuntu.16.04 b/src/proj/ubuntu.16.04 similarity index 100% rename from src/dist/ubuntu.16.04 rename to src/proj/ubuntu.16.04 diff --git a/src/remaster.sh b/src/remaster.sh index cb971ea..c509da1 100755 --- a/src/remaster.sh +++ b/src/remaster.sh @@ -9,12 +9,13 @@ ##################################################################################### #get base dir rootdir=`echo $0 | rev | cut -d "/" -f 2- | rev`/../../ -export "rootdir=`readlink -e $rootdir`"" +export "rootdir=`readlink -e $rootdir`" #set functions if [ -p "$rootdir/usr/lib/remaster/" ]; then #source "$rootdir/usr/lib/remaster/" ... export PATH="$rootdir/usr/lib/remaster/":$PATH + export LIBDIR="$rootdir/usr/lib/remaster/" else echo "ERROR functions not found" exit 1