mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-22 19:29:24 +01:00
Compare commits
2 Commits
4ad1408305
...
530467d73c
Author | SHA1 | Date | |
---|---|---|---|
530467d73c | |||
6046dfbb4c |
@ -60,6 +60,16 @@ if hash dnf 2> /dev/null; then
|
|||||||
dnf -v "$@" autoremove
|
dnf -v "$@" autoremove
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# https://github.com/Homebrew/brew
|
||||||
|
if [[ -d /home/linuxbrew/.linuxbrew/bin && $(id -u) != 0 ]]; then
|
||||||
|
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
||||||
|
/home/linuxbrew/.linuxbrew/bin/brew doctor
|
||||||
|
/home/linuxbrew/.linuxbrew/bin/brew update --quiet
|
||||||
|
/home/linuxbrew/.linuxbrew/bin/brew upgrade --quiet
|
||||||
|
else
|
||||||
|
printf "Either linuxbrew is not installed or running as root, skipping linuxbrew...\n"
|
||||||
|
fi
|
||||||
|
|
||||||
if hash rpmconf 2> /dev/null; then
|
if hash rpmconf 2> /dev/null; then
|
||||||
# Tests if there are rpmsave/rpmnew files, hopefully is non-interactive
|
# Tests if there are rpmsave/rpmnew files, hopefully is non-interactive
|
||||||
rpmconf -a -t
|
rpmconf -a -t
|
||||||
|
@ -28,14 +28,14 @@ if [ -f /etc/machine-id ]; then
|
|||||||
else
|
else
|
||||||
printf "\nWARNING! Kernels mismatch! Suggested actions:\n"
|
printf "\nWARNING! Kernels mismatch! Suggested actions:\n"
|
||||||
printf "\tsudo mkdir /boot/%b/%b\n" "$MACHINEID" "$EXPECTEDKERNEL"
|
printf "\tsudo mkdir /boot/%b/%b\n" "$MACHINEID" "$EXPECTEDKERNEL"
|
||||||
printf "\tsudo kernel-install add %b /lib/modules/%b/vmlinuz\n" "$EXPECTEDKERNEL" "$EXPECTEDKERNEL"
|
printf "\tsudo kernel-install -v add %b /lib/modules/%b/vmlinuz\n" "$EXPECTEDKERNEL" "$EXPECTEDKERNEL"
|
||||||
#printf "\tsudo dnf reinstall kernel-core-%b -y\n" "$EXPECTEDKERNEL"
|
#printf "\tsudo dnf reinstall kernel-core-%b -y\n" "$EXPECTEDKERNEL"
|
||||||
printf "Please note that Lumina and Sedric have moved to UKI.\n"
|
printf "Please note that Lumina and Sedric have moved to UKI.\n"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "New kernel? Just in case, try sudo kernel-install add $(uname -r) # although using the actual new kernel version"
|
echo "New kernel? Just in case, try sudo kernel-install -v add $(uname -r) # although using the actual new kernel version"
|
||||||
echo "Alternatively sudo kernel-install add-all"
|
echo "Alternatively sudo kernel-install -v add-all"
|
||||||
|
|
||||||
#set +x
|
#set +x
|
||||||
|
Loading…
Reference in New Issue
Block a user