mountall: show target mountpoint in output

This commit is contained in:
Gerd v. Egidy 2022-09-06 20:24:46 +02:00
parent d8de1c8199
commit c52dcbeeb0

View file

@ -197,6 +197,8 @@ create_mountpoint()
{
local DEV="$1"
[[ $VERBOSE -eq 1 ]] && echo "looking for a suitable mountpoint for $DEV"
DEVNAME=$(basename "$DEV")
MOUNTPOINT="/mnt/$DEVNAME"
@ -265,10 +267,10 @@ try_mount()
{
local DEV="$1"
echo -n "mounting $DEV... "
create_mountpoint "$DEV" || return
echo -n "mounting $DEV to $MOUNTPOINT... "
local OPTIONS=""
if [[ $READONLY -eq 1 ]]; then
[[ $VERBOSE -eq 1 ]] && echo "mounting read-only"