Browse Source

Added getting device model for removable media.

master
digital-freak 9 years ago
parent
commit
de1207106e
  1. 2
      hdd.sh

2
hdd.sh

@ -17,7 +17,7 @@ get_device_model() {
sed 's/^[ \t]*//' ) sed 's/^[ \t]*//' )
if [ -z "${DEVICE_MODEL}" ]; then if [ -z "${DEVICE_MODEL}" ]; then
DEVICE_MODEL=$( camcontrol inquiry ${1} -D | \ DEVICE_MODEL=$( camcontrol inquiry ${1} -D 2>/dev/null | \
cut -d\< -f2 | \ cut -d\< -f2 | \
cut -d\> -f1 | \ cut -d\> -f1 | \
sed 's/\ *$//' ) sed 's/\ *$//' )

Loading…
Cancel
Save