From d7a6aa81ef4506b7d4e10ddf09ee1662e0eebbd0 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 7 Aug 2025 02:30:42 +0100 Subject: remove some cruft --- scripts/install-octopi.sh | 103 ---------------------------------------------- 1 file changed, 103 deletions(-) delete mode 100755 scripts/install-octopi.sh (limited to 'scripts/install-octopi.sh') diff --git a/scripts/install-octopi.sh b/scripts/install-octopi.sh deleted file mode 100755 index a7fb78c2..00000000 --- a/scripts/install-octopi.sh +++ /dev/null @@ -1,103 +0,0 @@ -#!/bin/bash -# This script installs Klipper on a Raspberry Pi machine running the -# OctoPi distribution. - -PYTHONDIR="${HOME}/klippy-env" - -# Step 1: Install system packages -install_packages() -{ - # Packages for python cffi - PKGLIST="virtualenv python-dev libffi-dev build-essential" - # kconfig requirements - PKGLIST="${PKGLIST} libncurses-dev" - # hub-ctrl - PKGLIST="${PKGLIST} libusb-dev" - # AVR chip installation and building - PKGLIST="${PKGLIST} avrdude gcc-avr binutils-avr avr-libc" - # ARM chip installation and building - PKGLIST="${PKGLIST} stm32flash dfu-util libnewlib-arm-none-eabi" - PKGLIST="${PKGLIST} gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0" - - # Update system package info - report_status "Running apt-get update..." - sudo apt-get update - - # Install desired packages - report_status "Installing packages..." - sudo apt-get install --yes ${PKGLIST} -} - -# Step 2: Create python virtual environment -create_virtualenv() -{ - report_status "Updating python virtual environment..." - - # Create virtualenv if it doesn't already exist - [ ! -d ${PYTHONDIR} ] && virtualenv -p python2 ${PYTHONDIR} - - # Install/update dependencies - ${PYTHONDIR}/bin/pip install -r ${SRCDIR}/scripts/klippy-requirements.txt -} - -# Step 3: Install startup script -install_script() -{ - report_status "Installing system start script..." - sudo cp "${SRCDIR}/scripts/klipper-start.sh" /etc/init.d/klipper - sudo update-rc.d klipper defaults -} - -# Step 4: Install startup script config -install_config() -{ - DEFAULTS_FILE=/etc/default/klipper - [ -f $DEFAULTS_FILE ] && return - - report_status "Installing system start configuration..." - sudo /bin/sh -c "cat > $DEFAULTS_FILE" <