CB1 icon indicating copy to clipboard operation
CB1 copied to clipboard

U-disk Automount setup in BTT/KIAUH/CB1 custom function menu fails with V2.3.3 images.

Open cdsmith69 opened this issue 1 year ago • 0 comments

This issue probably belongs in the bigtreetech/kiauh repository but issues don't seem to be enabled there.

With the CB1 images dated 20230712, version V2.3.3, if you install the CB1 branch of the Big Tree Tech fork of KIAUH, the "[U-disk Automount]" function in the Lodge custom function menu fails when setting up flash drive automount. This is because it expects a directory /etc/scripts to exist and this directory doesn't exist in these images. So when the script gets to the line "sudo cp ${LCF_SRC_DIR}/usb/usb_udev.sh /etc/scripts" instead of copying usb_udev.sh into /etc/scripts, it copies usb_udev.sh to a file called scripts in /etc.

A workaround is to create the directory /etc/scripts before running the U-disk Automount setup. But a better solution would be for the script to check for the existence of the /etc/scripts directory and create the directory if it does not exist.

cdsmith69 avatar Jul 19 '23 16:07 cdsmith69