ci: add quick kernel updater

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
merge-requests/5/merge
Robert Nelson 9 months ago
parent f6a495a436
commit 1cf03154d2

@ -55,7 +55,9 @@ pages:
stage: deploy
script:
- mkdir -p ./public/ || true
- cp -v ./deploy/* ./public/
- cp -v ./deploy/beaglev_fire.itb ./public/
- cp -v ./deploy/modules.tar.gz ./public/
- cp -v ./get_kernel_update.sh ./public/
- apindex public
artifacts:
when: on_success

@ -0,0 +1,32 @@
#!/bin/bash
if ! id | grep -q root; then
echo "must be run as root"
exit
fi
if [ -f ./beaglev_fire.itb ] ; then
rm -rf ./beaglev_fire.itb || true
fi
if [ -f ./modules.tar.gz ] ; then
rm -rf ./modules.tar.gz || true
fi
wget https://beaglev-fire.beagleboard.io/BeagleV-Fire-ubuntu/beaglev_fire.itb
wget https://beaglev-fire.beagleboard.io/BeagleV-Fire-ubuntu/modules.tar.gz
if [ -f ./beaglev_fire.itb ] ; then
if [ -d /boot/firmware/ ] ; then
if [ -f /boot/firmware/beaglev_fire.itb ] ; then
rm -rf /boot/firmware/beaglev_fire.itb || true
cp -v ./beaglev_fire.itb /boot/firmware/beaglev_fire.itb
sync
fi
fi
fi
if [ -f ./modules.tar.gz ] ; then
tar xf ./modules.tar.gz -C /usr/
fi
Loading…
Cancel
Save