fix login failure

This commit is contained in:
2026-10-01 19:50:41 +03:00
parent 281e1ca87d
commit 2db6494a64
2 changed files with 15 additions and 1 deletions
@@ -104,10 +104,23 @@ run_ep_eraser() {
run_nwipe() { run_nwipe() {
local report_dir=/var/log/ep-eraser/reports local report_dir=/var/log/ep-eraser/reports
local status
mkdir -p /etc/nwipe mkdir -p /etc/nwipe
mkdir -p "$report_dir" mkdir -p "$report_dir"
cd /etc/nwipe cd /etc/nwipe
nwipe --PDFreportpath="$report_dir" </dev/tty >/dev/tty 2>&1 trap ':' INT
if nwipe --PDFreportpath="$report_dir" </dev/tty >/dev/tty 2>&1; then
status=0
else
status=$?
fi
trap - INT
if [ "$status" -eq 130 ]; then
printf '\nnwipe interrupted. Returning to the tool menu.\n'
elif [ "$status" -ne 0 ]; then
printf '\nnwipe exited with status %s. Returning to the tool menu.\n' "$status"
fi
} }
main() { main() {
+1
View File
@@ -2,3 +2,4 @@ live-boot
live-config live-config
live-config-systemd live-config-systemd
systemd-sysv systemd-sysv
user-setup