aboutsummaryrefslogtreecommitdiff
path: root/stackrpms-automount.sh
diff options
context:
space:
mode:
Diffstat (limited to 'stackrpms-automount.sh')
-rwxr-xr-xstackrpms-automount.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/stackrpms-automount.sh b/stackrpms-automount.sh
index 232a7f6..a3f7c09 100755
--- a/stackrpms-automount.sh
+++ b/stackrpms-automount.sh
@@ -70,12 +70,13 @@ createEntry() {
_atracks=
_bytes="$( udevadm info "/dev/${_device}" 2>/dev/null )"
_shortbytes="$( printf "%s\n" "${_bytes}" | sed -r -e 's/^E:\s*//;' | grep -E '^(ID_FS_TYPE|ID_MODEL|ID_VENDOR|ID_FS_LABEL|ID_CDROM_MEDIA_TRACK_COUNT_AUDIO)=' )"
+ unset ID_FS_TYPE ID_MODEL ID_VENDOR ID_FS_LABEL ID_CDROM_MEDIA_TRACK_COUNT_AUDIO
eval "${_shortbytes}"
_fs="${ID_FS_TYPE}"
_model="${ID_MODEL}"
_vendor="${ID_VENDOR}"
_label="${ID_FS_LABEL}"
- _atracks="${_ID_CDROM_MEDIA_TRACK_COUNT_AUDIO}"
+ _atracks="${ID_CDROM_MEDIA_TRACK_COUNT_AUDIO}"
test -n "${DEBUG}" && echo "fs=${_fs} model=${_model} vendor=${_vendor} label=${_label} atracks=${_atracks}" 1>&2
test "${_fs}" = "" && test "${_atracks}" = "" && return # if the fs cannot be detected
touch "${_filepath}" ; chmod 0755 "${_filepath}"
bgstack15