From 7c169647c78cd0c746b8dc3cae06ac3205e3fba8 Mon Sep 17 00:00:00 2001 From: ballaswag <145094472+ballaswag@users.noreply.github.com> Date: Sun, 26 May 2024 00:28:01 -0700 Subject: [PATCH] add usb thumb drive support. --- installer.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/installer.sh b/installer.sh index b078b76..73f96fb 100755 --- a/installer.sh +++ b/installer.sh @@ -137,6 +137,10 @@ else sed -i '/\[include gcode_macro\.cfg\]/a \[include GuppyScreen/*\.cfg\]' $K1_CONFIG_DIR/printer.cfg fi +## symlink usb +K1_GCODE_DIR=$(dirname "$K1_CONFIG_DIR")/gcodes +ln -sf /tmp/udisk $K1_GCODE_DIR/usb + if [ ! -d "$BACKUP_DIR" ]; then printf "${green} Backing up original K1 files ${white}\n" mkdir -p $BACKUP_DIR