aboutsummaryrefslogtreecommitdiff
path: root/stackrpms-automount.sh
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-09-25 16:37:33 -0400
committerB Stack <bgstack15@gmail.com>2020-09-25 16:37:33 -0400
commit801f64dccf355941a331422903de632328b301ab (patch)
tree3b8bb8016d7f18c0ee58332e23d9ca835f671f26 /stackrpms-automount.sh
parentWIP: add many features to trayicon (diff)
downloadmyautomount-801f64dccf355941a331422903de632328b301ab.tar.gz
myautomount-801f64dccf355941a331422903de632328b301ab.tar.bz2
myautomount-801f64dccf355941a331422903de632328b301ab.zip
provide working trayicon now
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