mirror of https://schlomp.space/tastytea/hashboot
interactive?
parent
6df2751a13
commit
37b0d5204f
6
hashboot
6
hashboot
|
@ -26,6 +26,12 @@ BOOT_MOUNTED=0
|
||||||
CONFIG_FILE="/etc/hashboot.cfg"
|
CONFIG_FILE="/etc/hashboot.cfg"
|
||||||
COUNTER=0
|
COUNTER=0
|
||||||
|
|
||||||
|
if [[ -t "$fd" || -p /dev/stdin ]]
|
||||||
|
then
|
||||||
|
INTERACTIVE=1
|
||||||
|
else
|
||||||
|
INTERACTIVE=0
|
||||||
|
fi
|
||||||
|
|
||||||
#Umount /boot if we mounted it, exit with given exit code
|
#Umount /boot if we mounted it, exit with given exit code
|
||||||
die ()
|
die ()
|
||||||
|
|
Loading…
Reference in New Issue