mirror of
git://soft.sys114.com/klipper
synced 2026-02-09 14:24:22 +09:00
ODROID: debian: Add Debian package scripts
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: If859a008e42cf8c0f670de40886e525916ae98ce
This commit is contained in:
22
debian/klipper.postinst
vendored
Normal file
22
debian/klipper.postinst
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/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#
|
||||
Reference in New Issue
Block a user