Added rp2040 flash script. Added nala
This commit is contained in:
parent
c4a4a0a828
commit
aed795d2db
17
pico-load.sh
Executable file
17
pico-load.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
if [ ! -f ~/.desktop_gnome ]; then
|
||||
while [ ! -f /media/$USER/RPI-RP2/INFO_UF2.TXT ]; do
|
||||
sleep 1
|
||||
done
|
||||
set -e
|
||||
cargo run --release
|
||||
else
|
||||
sudo umount /mnt/usb
|
||||
while [ ! -f /mnt/usb/INFO_UF2.TXT ]; do
|
||||
sudo mount /dev/sda1 /mnt/usb -o umask=000
|
||||
sleep 1
|
||||
done
|
||||
set -e
|
||||
cargo run --release
|
||||
sudo umount /mnt/usb
|
||||
fi
|
||||
@ -9,7 +9,7 @@ sudo apt -y purge --auto-remove neovim
|
||||
printf -- '\033[33m Installing system packages\n\033[37m'
|
||||
sudo apt update && sudo apt -y upgrade
|
||||
sudo apt -y install ninja-build gettext cmake unzip curl python3 python3-pip python3-venv \
|
||||
build-essential libssl-dev libffi-dev python3-dev file tmux libudev-dev pkg-config locales
|
||||
build-essential libssl-dev libffi-dev python3-dev file tmux libudev-dev pkg-config locales nala
|
||||
|
||||
# Setup locals
|
||||
printf -- '\033[33m Setup locals\n\033[37m'
|
||||
@ -186,6 +186,11 @@ ln -sf ~/code_server/config/lazygit/config.yml ~/.config/lazygit/config.yml
|
||||
printf -- '\033[33m Symlinking luacheck config\n\033[37m'
|
||||
ln -sf ~/code_server/luacheckrc ~/.luacheckrc
|
||||
|
||||
# Symlink rp2040 flash script
|
||||
printf -- '\033[33m Symlinking rp2040 flash script\n\033[37m'
|
||||
mkdir -p ~/.local/bin
|
||||
ln -sf ~/code_server/pico-load.sh ~/.local/bin/pico-load
|
||||
|
||||
# Symlink update script
|
||||
printf -- '\033[33m Symlinking update script\n\033[37m'
|
||||
mkdir -p ~/.local/bin
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user