misc minor updates and fixes, add device-specific stuff

This commit is contained in:
askiiart 2024-08-08 19:55:22 -05:00
parent 2e8aa91092
commit 47bb90de9c
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
6 changed files with 42 additions and 5 deletions

23
install-stuff/install-rust.sh Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env bash
if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root"
exit 1
fi
command_exists() { type "$1" &>/dev/null; }
if command_exists "yum"; then
sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo
sudo dnf install rustup -y
fish -c "rustup-init"
elif command_exists "rpm-ostree"; then
sudo wget https://askiiart.net/repos/fedora/x86_64/askiiart.repo -O /etc/yum.repos.d/askiiart.repo
rpm-ostree install rustup -y
echo "run rustup-init yourself or update the script"
elif command_exists "yay"; then
yay -S rustup --noconfirm --needed
else
echo "figure out rustup yourself"
echo "enter to continue"
read -p ""
fi