From 7765a4a74a7a2cf8e9f6fed2005904c9399dcbff Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Wed, 25 Mar 2020 11:09:35 +0100 Subject: [PATCH] Fix mass storage device name --- initramfs/init_functions.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/initramfs/init_functions.sh b/initramfs/init_functions.sh index 04b40b3..98602f2 100755 --- a/initramfs/init_functions.sh +++ b/initramfs/init_functions.sh @@ -55,6 +55,9 @@ setup_usb_configfs() { # Set up mass storage to internal EMMC echo $EMMC > $CONFIGFS/g1/functions/"$usb_mass_storage_function"/lun.0/file + # Rename the mass storage device + echo "JumpDrive" > $CONFIGFS/g1/functions/"$usb_mass_storage_function"/lun.0/inquiry_string + # Link the rndis/mass_storage instance to the configuration ln -s $CONFIGFS/g1/functions/"$usb_rndis_function" $CONFIGFS/g1/configs/c.1 \ || echo " Couldn't symlink $usb_rndis_function"