Compare commits

...

2 Commits

2 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -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