0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-02-17 14:50:58 +00:00
MarlinFirmware/buildroot/bin/restore_configs

18 lines
433 B
Text
Raw Normal View History

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