Commit 8863005b authored by Tails developers's avatar Tails developers
Browse files

Rename variable to something more meaningful.

parent cf0d40df
......@@ -45,13 +45,13 @@ else
PHYS_DEV_NUMBER="$MOUNTED_IMG_DEV_NUMBER"
fi
ID="/dev/block/${PHYS_DEV_NUMBER}"
DEVICE=`udevadm info --query path --path "${ID}"`
DEV_TYPE=`udevadm info --query property --path "${ID}" | grep ID_TYPE | awk -F "=" '{ print $2 }'`
DEV_PATH="/dev/block/${PHYS_DEV_NUMBER}"
DEVICE=`udevadm info --query path --path "${DEV_PATH}"`
DEV_TYPE=`udevadm info --query property --path "${DEV_PATH}" | grep ID_TYPE | awk -F "=" '{ print $2 }'`
# Let's be sure the CDRom can be ejected by pressing the button
if [ "$DEV_TYPE" = "cd" ]; then
eject -i off "${ID}" 2>&1 >/dev/null
eject -i off "${DEV_PATH}" 2>&1 >/dev/null
fi
# Start udev-watchdog and stop on clean exit.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment