mirror of
git://soft.sys114.com/klipper
synced 2026-02-04 13:20:35 +09:00
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: If859a008e42cf8c0f670de40886e525916ae98ce
23 lines
557 B
Bash
23 lines
557 B
Bash
#!/bin/sh
|
|
|
|
KLIPPER_CONFIG_PATH=/etc/klippy_config
|
|
DEFAULT_CONFIG=generic-bigtreetech-skr-v1.3.cfg
|
|
|
|
## Install required Python packages
|
|
|
|
if [ ! `which pip2` ]; then
|
|
curl https://bootstrap.pypa.io/get-pip.py --output /tmp/get-pip.py
|
|
python2 /tmp/get-pip.py
|
|
fi
|
|
|
|
/usr/local/bin/pip install -r /usr/share/klipper/klippy-requirements.txt
|
|
|
|
## Default printer configuration
|
|
mkdir -p ${KLIPPER_CONFIG_PATH}
|
|
if [ ! -f ${KLIPPER_CONFIG_PATH}/printer.cfg ]; then
|
|
ln -s /usr/share/klipper/config/$DEFAULT_CONFIG \
|
|
${KLIPPER_CONFIG_PATH}/printer.cfg
|
|
fi
|
|
|
|
#DEBHELPER#
|