daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/env sh
  2. # run with sudo
  3.  
  4. SDLETTER=$(echo $1 | tr '[:upper:]' '[:lower:]')
  5. GCODE=$2
  6.  
  7. SDPATH="/mnt/$SDLETTER/"
  8.  
  9. GCODEPATH="$PWD/$GCODE"
  10.  
  11. mkdir $SDPATH
  12. mount -t drvfs "$SDLETTER": $SDPATH
  13.  
  14. cp -i "$GCODEPATH" "$SDPATH"
  15.  
  16. umount $SDPATH
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top