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