SpectreOS/configs/hooks/usbsecret

23 lines
591 B
Text
Raw Permalink Normal View History

2022-10-04 19:01:31 +02:00
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: