Pull mainsail-config from repo
This commit is contained in:
parent
8dc754f4f7
commit
510f321833
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -5,3 +5,7 @@
|
|||||||
[submodule "dirs/moonraker"]
|
[submodule "dirs/moonraker"]
|
||||||
path = dirs/moonraker
|
path = dirs/moonraker
|
||||||
url = https://github.com/Arksine/moonraker
|
url = https://github.com/Arksine/moonraker
|
||||||
|
|
||||||
|
[submodule "dirs/mainsail-config"]
|
||||||
|
path = dirs/mainsail-config
|
||||||
|
url = https://github.com/mainsail-crew/mainsail-config
|
||||||
|
@ -4,7 +4,7 @@ port: 7126
|
|||||||
# The maximum size allowed for a file upload (in MiB). Default 1024 MiB
|
# The maximum size allowed for a file upload (in MiB). Default 1024 MiB
|
||||||
max_upload_size: 1024
|
max_upload_size: 1024
|
||||||
# Path to klippy Unix Domain Socket
|
# Path to klippy Unix Domain Socket
|
||||||
klippy_uds_address: ~/taz/printer_data_taz/comms/klippy.sock
|
klippy_uds_address: ~/PRINTERNAME/printer_data/comms/klippy.sock
|
||||||
|
|
||||||
[file_manager]
|
[file_manager]
|
||||||
# post processing for object cancel. Not recommended for low resource SBCs such as a Pi Zero. Default False
|
# post processing for object cancel. Not recommended for low resource SBCs such as a Pi Zero. Default False
|
||||||
@ -45,14 +45,14 @@ enable_auto_refresh: True
|
|||||||
type: web
|
type: web
|
||||||
channel: stable
|
channel: stable
|
||||||
repo: mainsail-crew/mainsail
|
repo: mainsail-crew/mainsail
|
||||||
path: ~/mainsail
|
path: ~/PRINTERNAME/mainsail
|
||||||
|
|
||||||
[update_manager mainsail-config]
|
# [update_manager mainsail-config]
|
||||||
type: git_repo
|
# type: git_repo
|
||||||
primary_branch: master
|
# primary_branch: master
|
||||||
path: ~/taz/mainsail-config
|
# path: ~/PRINTERNAME/mainsail-config
|
||||||
origin: https://github.com/mainsail-crew/mainsail-config.git
|
# origin: https://github.com/mainsail-crew/mainsail-config.git
|
||||||
managed_services: klipper
|
# managed_services: klipper
|
||||||
|
|
||||||
### moonraker-timelapse
|
### moonraker-timelapse
|
||||||
### Don't forget to include timelapse.cfg to your printer.cfg
|
### Don't forget to include timelapse.cfg to your printer.cfg
|
||||||
@ -73,18 +73,18 @@ managed_services: klipper
|
|||||||
#ffmpeg_binary_path: /usr/bin/ffmpeg
|
#ffmpeg_binary_path: /usr/bin/ffmpeg
|
||||||
|
|
||||||
# Crowsnest update_manager entry
|
# Crowsnest update_manager entry
|
||||||
[update_manager crowsnest]
|
# [update_manager crowsnest]
|
||||||
type: git_repo
|
# type: git_repo
|
||||||
path: ~/crowsnest
|
# path: ~/crowsnest
|
||||||
origin: https://github.com/mainsail-crew/crowsnest.git
|
# origin: https://github.com/mainsail-crew/crowsnest.git
|
||||||
managed_services: crowsnest
|
# managed_services: crowsnest
|
||||||
install_script: tools/pkglist.sh
|
# install_script: tools/pkglist.sh
|
||||||
|
|
||||||
# Sonar update_manager entry
|
# # Sonar update_manager entry
|
||||||
[update_manager sonar]
|
# [update_manager sonar]
|
||||||
type: git_repo
|
# type: git_repo
|
||||||
path: ~/sonar
|
# path: ~/sonar
|
||||||
origin: https://github.com/mainsail-crew/sonar.git
|
# origin: https://github.com/mainsail-crew/sonar.git
|
||||||
primary_branch: main
|
# primary_branch: main
|
||||||
managed_services: sonar
|
# managed_services: sonar
|
||||||
install_script: tools/install.sh
|
# install_script: tools/install.sh
|
||||||
|
5
setup.sh
5
setup.sh
@ -32,6 +32,9 @@ done
|
|||||||
DEVICE_INDEX=$(dialog --backtitle "drwho@hackers.town" --title "USB Device Selection" --menu "Select USB Device" --output-fd 1 40 0 1 ${C[@]})
|
DEVICE_INDEX=$(dialog --backtitle "drwho@hackers.town" --title "USB Device Selection" --menu "Select USB Device" --output-fd 1 40 0 1 ${C[@]})
|
||||||
DEVICE=${DEVICES[$DEVICE_INDEX]}
|
DEVICE=${DEVICES[$DEVICE_INDEX]}
|
||||||
|
|
||||||
|
# Name Printer
|
||||||
|
PRINTER_NAME="$(dialog --backtitle \"drwho@hackers.town\" --title \"Printer Name\" --inputbox \"Name This Printer\" 8 40 3>&1 1>&2 2>&3)"
|
||||||
|
|
||||||
# Build Klipper
|
# Build Klipper
|
||||||
cat ./config/$CONFIG_FILE | sed -e "s/^serial: .\+$/serial: \/dev\/serial\/by-id\/${DEVICE}/" > ./printer.cfg
|
cat ./config/$CONFIG_FILE | sed -e "s/^serial: .\+$/serial: \/dev\/serial\/by-id\/${DEVICE}/" > ./printer.cfg
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
@ -55,3 +58,5 @@ mkdir -p ~/PRINTER/backup
|
|||||||
cd $ROOT_DIR
|
cd $ROOT_DIR
|
||||||
wget -q -O mainsail.zip https://github.com/mainsail-crew/mainsail/releases/latest/download/mainsail.zip
|
wget -q -O mainsail.zip https://github.com/mainsail-crew/mainsail/releases/latest/download/mainsail.zip
|
||||||
unzip -o mainsail.zip -d dirs/mainsail
|
unzip -o mainsail.zip -d dirs/mainsail
|
||||||
|
|
||||||
|
# Install System Services
|
||||||
|
Loading…
Reference in New Issue
Block a user