mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
14 lines
352 B
Bash
14 lines
352 B
Bash
|
#!/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"
|