2018-02-26 02:41:29 +01:00
|
|
|
run_hook ()
|
|
|
|
{
|
2018-03-04 20:16:30 +01:00
|
|
|
# Do not need this thanks to tr: file=$(dos2unix inputs.txt)
|
2018-02-26 02:41:29 +01:00
|
|
|
|
2018-03-04 20:16:30 +01:00
|
|
|
# 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."
|
2018-02-26 02:41:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim: set ft=sh ts=4 sw=4 et:
|