renamed scripts to better represent their function

master
Alessandro Mauri 4 years ago
parent 17ab178cdd
commit 2117ad85ab
  1. 4
      posix/maketi
  2. 0
      posix/payload

@ -6,7 +6,7 @@ WORKDIR="$(basename "$1")"
if [ -z "$LIBPATH" ]; then if [ -z "$LIBPATH" ]; then
LIBPATH='/lib' LIBPATH='/lib'
fi fi
PRELOAD_SCRIPT='preload' PAYLOAD_SCRIPT='payload'
LIBLIST="$WORKDIR"/liblist LIBLIST="$WORKDIR"/liblist
SUMFILE="$WORKDIR"/checksum SUMFILE="$WORKDIR"/checksum
tmpfile="$WORKDIR"/tt tmpfile="$WORKDIR"/tt
@ -141,7 +141,7 @@ md5sum -b "$DIRNAME".tar | cut -d " " -f1 > "$SUMFILE"
lz4 --rm -9 -c "$DIRNAME.tar" > "$DIRNAME".tar.lz4 lz4 --rm -9 -c "$DIRNAME.tar" > "$DIRNAME".tar.lz4
echo "Injecting payload..." echo "Injecting payload..."
sed s/SUM/"$(cat "$SUMFILE")"/ "$PRELOAD_SCRIPT" | sed s/SUM/"$(cat "$SUMFILE")"/ "$PAYLOAD_SCRIPT" |
sed s/ID/"$(basename "$DIRNAME")"/ | sed s/ID/"$(basename "$DIRNAME")"/ |
awk '!/^ *#/ && NF' > tpp awk '!/^ *#/ && NF' > tpp
Loading…
Cancel
Save