• Reorganized the scripts into different categories
• Refactored the graphical boot screens to have separate boot and shutdown images • Changed the reboot and shutdown code to force the display of the splash images. • Added 'Team Onefinity.ngc' to the installer files
This commit is contained in:
25
installer/scripts/upgrade-bbctrl
Executable file
25
installer/scripts/upgrade-bbctrl
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
(
|
||||
flock -n 9
|
||||
|
||||
VERSION=$(curl -s https://raw.githubusercontent.com/OneFinityCNC/onefinity-release/master/latest.txt)
|
||||
PKG_NAME=onefinity-$VERSION
|
||||
PKG=/var/lib/bbctrl/firmware/update.tar.bz2
|
||||
PKG_URL=https://raw.githubusercontent.com/OneFinityCNC/onefinity-release/master/$PKG_NAME.tar.bz2
|
||||
|
||||
logger Installing onefinity firmware $VERSION
|
||||
|
||||
cd /var/lib/bbctrl
|
||||
mkdir -p firmware
|
||||
|
||||
echo Downloading $PKG_URL
|
||||
curl -s $PKG_URL > $PKG
|
||||
|
||||
/usr/local/bin/update-bbctrl
|
||||
|
||||
echo Success
|
||||
|
||||
logger bbctrl firmware $VERSION installed
|
||||
|
||||
) 9> /var/lock/bbctrl.upgrade.lock
|
||||
Reference in New Issue
Block a user