find_uuid() { dev=$1 awk '/^uuid/ { uuid=$3 } /^device-config/ && $NF == '$dev' { print uuid }' uuid-file }