SpectreOS-old/hooks/usbsecret
2018-03-04 20:16:30 +01:00

22 lines
591 B
Bash
Executable file

run_hook ()
{
# Do not need this thanks to tr: file=$(dos2unix inputs.txt)
# Use -r so a line with backslashes will be showed like you want
while true
do
# Not empty? Check with test -n
if blkid -s PARTUUID -o value | grep %USB_UUID% > /dev/null; then
echo ":: USB-Stick gefunden fahre mit starten des Systems weiter!"
break
else
echo ":: USB-Stick konnte nicht zur entsperrung gefunden werden!"
echo "..."
sleep 5
fi
done
echo ":: done."
}
# vim: set ft=sh ts=4 sw=4 et: