Updated nwipe package to v0.32. Modification to the nwipe_launcher in regards to user lftp export of logs

This commit is contained in:
PartialVolume
2021-10-29 11:08:35 +01:00
parent 6bb0f4b3bd
commit b5c5f15583
4 changed files with 10 additions and 12 deletions

View File

@@ -8,7 +8,6 @@ country_code=""
nwipe_options_string=""
lftp_command_line=""
\rm lftp.log
echo "[`date`] lftp log" > lftp.log
# read the kernel command line for the loadkeys label for setting the correct keyboard layout
@@ -45,23 +44,24 @@ fi
lftp_command_line=$(kernel_cmdline_extractor lftp)
if [ $? == 0 ]
then
echo "Found lftp commands on kernel command line, preparing lftp"
echo "[`date`] Found lftp commands on kernel command line in grub.cfg"
if [ ! -d "exported" ]; then
mkdir exported
echo "created exported directory"
echo "[`date`] created exported directory"
fi
echo "Executing users lftp commands"
echo "[`date`] Executing users lftp commands"
lftp -c "$lftp_command_line" >> lftp.log
if [ $? == 0 ]
then
echo "lftp completed sucessfully"
echo "moving nwipe logs to ../exported"
echo "[`date`] lftp completed sucessfully"
echo "[`date`] moving nwipe logs to ../exported"
mv nwipe_*.txt exported/
else
echo "[`date`] lftp command failed, lftp -c \"$lftp_command_line\" See lftp.log for details"
echo "[`date`] lftp command failed, See above and lftp.log for details"
fi
fi
printf ""
printf "Paused, press a key to restart nwipe."
read -rsn1 input
sleep 1;
@@ -72,7 +72,5 @@ sleep 1;
printf " 2"
sleep 1
printf " 1"
sleep 1;
printf " 0"
done

View File

@@ -1,2 +1,2 @@
2020.05.015_x86-64_0.31
2020.05.016_x86-64_0.32

View File

@@ -1,2 +1,2 @@
sha1 ce61feb2d0c14552bec64e536aadd161c2a3d2f1 nwipe-v0.31.tar.gz
sha1 f921b439c6fe2564c4f55805e2d69e9b3410b4b7 nwipe-v0.32.tar.gz

View File

@@ -4,7 +4,7 @@
#
################################################################################
NWIPE_VERSION = v0.31
NWIPE_VERSION = v0.32
NWIPE_SITE = $(call github,martijnvanbrummelen,nwipe,$(NWIPE_VERSION))
NWIPE_DEPENDENCIES = ncurses parted dmidecode coreutils