Marlin 2.0 for Flying Bear 4S/5
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
RESTORE="https://raw.githubusercontent.com/MarlinFirmware/Configurations/master/config/default"
|
|
|
|
|
|
|
|
cd Marlin
|
|
|
|
|
|
|
|
rm -f Conf*.h _*screen.h
|
|
|
|
|
|
|
|
PINS="src/pins"
|
|
|
|
RAMPS="$PINS/ramps/pins_RAMPS.h"
|
|
|
|
BKUP="$PINS/ramps/pins_RAMPS.backup.h"
|
|
|
|
[ -f $BKUP ] && { cp "$BKUP" "$RAMPS" ; rm -f $BKUP ; }
|
|
|
|
|
|
|
|
wget -q "$RESTORE/Configuration.h" -O Configuration.h
|
|
|
|
wget -q "$RESTORE/Configuration_adv.h" -O Configuration_adv.h
|
|
|
|
|
|
|
|
cd - >/dev/null
|