Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installer script for fusee-framboise v1.0.1
#!/bin/bash -e
apt install git python3 python3-pip curl libusb-1.0.0-dev
pip3 install pyusb
if [ -d "/etc/fusee-launcher" ]; then
# nope
echo "Please remove /etc/fusee-launcher"
fi
mkdir -p /etc/fusee-launcher
git clone "https://github.com/reswitched/fusee-launcher" /etc/fusee-launcher/
curl -o /etc/fusee-launcher/fusee.bin "https://misc.ktemkin.com/fusee.bin"
touch /etc/systemd/system/fusee-launcher.service
chmod 770 /etc/systemd/system/fusee-launcher.service
cat << EOF > /etc/systemd/system/fusee-launcher.service
[Unit]
Description = Fusee Launcher service of Fusée Framboise
After = basic.target
[Service]
WorkingDirectory=/etc/fusee-launcher/
ExecStart = /etc/fusee-launcher/modchipd.sh
[Install]
WantedBy = multi-user.target
EOF
systemctl enable fusee-launcher.service
systemctl start fusee-launcher.service
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.