This commit is contained in:
Marc Beninca 2023-09-30 19:52:10 +02:00
parent 0dc8e3e6b1
commit 39e1a9b927
15 changed files with 72 additions and 81 deletions

26
live/source/probe.sh Normal file
View file

@ -0,0 +1,26 @@
function probe_set {
probe_unset
if [ "${1}" ] ; then
probe "${1}" --set probe_fs --fs
probe "${1}" --set probe_fs_uuid --fs-uuid
probe "${1}" --set probe_label --label
probe "${1}" --set probe_part_uuid --part-uuid
fi
if [ "${probe_label}" ] ; then
probe_entry="${probe_entry}${probe_label}"
fi
if [ "${probe_fs}" ] ; then
probe_entry="${probe_entry}${probe_fs}"
fi
if [ "${probe_fs_uuid}" ] ; then
probe_entry="${probe_entry}${probe_fs_uuid}"
fi
}
function probe_unset {
unset probe_entry
unset probe_fs
unset probe_fs_uuid
unset probe_label
unset probe_part_uuid
}