interactive?

pull/1/head
xor 2015-10-04 20:46:31 +02:00
parent 6df2751a13
commit 37b0d5204f
1 changed files with 6 additions and 0 deletions

View File

@ -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 ()