This commit is contained in:
illiliti 2020-05-08 22:58:48 +03:00
parent 609afb52d9
commit 67e4825aa7

View File

@ -15,12 +15,12 @@ create_symlink()
# int main() # int main()
{ {
exec > /dev/null 2>&1
[ "${dev_name=${DEVPATH##*/}}" ] || exit 1 [ "${dev_name=${DEVPATH##*/}}" ] || exit 1
exec > /dev/null 2>&1
# avoid race condition # avoid race condition
while ! blkid "/dev/${dev_name}"; do sleep 1; done while [ ! -e "/dev/${dev_name}" ]; do sleep 1; done
for line in $(blkid "/dev/${dev_name}"); do case "${line%%=*}" in for line in $(blkid "/dev/${dev_name}"); do case "${line%%=*}" in
UUID) UUID)