1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/cpy2remed/cpy2remed.sh

14 lines
352 B
Bash
Executable File

#!/bin/sh
#cpy2remed - copy to removable media
#$1 contains generated hexfile
#$2 contains directory name for this particular nucleo board which could be
# set in the board makefile.include using variable DIR_NAME_AT_REMED
HEXFILE="$1"
DEV_DIR="$2"
REMED_MOUNT_PATH="${REMED_MOUNT_PATH:-/media/$USER/$DEV_DIR/}"
cp "$HEXFILE" "$REMED_MOUNT_PATH"