fix login failure
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ live-boot
|
|||||||
live-config
|
live-config
|
||||||
live-config-systemd
|
live-config-systemd
|
||||||
systemd-sysv
|
systemd-sysv
|
||||||
|
user-setup
|
||||||
|
|||||||
Reference in New Issue
Block a user