Update linupx-scripts.sh

This commit is contained in:
2022-09-09 17:39:50 -05:00
parent 9dbffd1475
commit 3d20559fb4

View File

@@ -486,6 +486,17 @@ BASHRC_INSTALL(){
read -n 1 -s -p "Press any key to continue"
INSTALL_MENU
}
MPVMFIX(){
echo -e "
blacklist {
device {
vendor \"VMware\"
product \"Virtual disk\"
}
}
" >> /etc/multipath.conf
/etc/init.d/multipath-tools restart
}
SCRIPT_MENU() {
if [ -f ${FOLDER}/lastrun ]; then
@@ -495,6 +506,9 @@ SCRIPT_MENU() {
LASTRUND='never'
LASTRUNT=''
fi
if [ "${1}" = "mpvmfix" ]; then
MPVMFIX
else
while :
do
clear
@@ -526,6 +540,7 @@ SCRIPT_MENU() {
echo " [6] Run Python-Pip Upgrades"
echo " [7] Upgrade to Python v3"
echo " [8] Update DNS Servers"
echo " [9] Fix multipath/vmware issue"
echo ""
if [ "$ATYPE" != 'yum' ]; then
echo " [0] Enable/Disable Automatic Security Updates"
@@ -561,6 +576,10 @@ SCRIPT_MENU() {
SCRIPT_MENU;;
8) DNSUPDATE
SCRIPT_MENU;;
9) MPVMFIX
echo ""
read -n 1 -s -p "Press any key to continue"
SCRIPT_MENU;;
0) ENDISASU
SCRIPT_MENU;;
[Ii]) INSTALL_MENU;;
@@ -576,6 +595,7 @@ SCRIPT_MENU() {
sleep 1;;
esac
done
fi
}
INSTALL_MENU() {
while :