2016-03-22 10:13:38 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-01-15 00:56:54 -05:00
|
|
|
RESTORE="https://raw.githubusercontent.com/MarlinFirmware/Configurations/master/config/default"
|
2016-07-16 08:00:43 -04:00
|
|
|
|
2020-01-15 00:56:54 -05:00
|
|
|
cd Marlin
|
|
|
|
|
|
|
|
rm -f Conf*.h _*screen.h
|
|
|
|
|
|
|
|
PINS="src/pins"
|
2019-07-11 03:32:24 -04:00
|
|
|
RAMPS="$PINS/ramps/pins_RAMPS.h"
|
|
|
|
BKUP="$PINS/ramps/pins_RAMPS.backup.h"
|
|
|
|
[ -f $BKUP ] && { cp "$BKUP" "$RAMPS" ; rm -f $BKUP ; }
|
2018-07-14 00:42:15 -04:00
|
|
|
|
2020-01-15 00:56:54 -05:00
|
|
|
wget -q "$RESTORE/Configuration.h" -O Configuration.h
|
|
|
|
wget -q "$RESTORE/Configuration_adv.h" -O Configuration_adv.h
|
|
|
|
|
|
|
|
cd - >/dev/null
|