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