From 22282da905d6deabd81aa753845ff4af381f343d Mon Sep 17 00:00:00 2001 From: Trammell Hudson Date: Mon, 17 Jul 2017 12:24:15 -0400 Subject: [PATCH] default to mounting USB device on /media --- initrd/bin/mount-usb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/initrd/bin/mount-usb b/initrd/bin/mount-usb index 705d8f97..dd89bfe9 100755 --- a/initrd/bin/mount-usb +++ b/initrd/bin/mount-usb @@ -28,4 +28,8 @@ if [ ! -d /media ]; then mkdir /media fi -mount -o ro $1 /media +if [ -z "$1" ]; then + mount -o ro /media +else + mount -o ro $1 /media +fi