Skip to content

Commit

Permalink
Disable PATCH-000003 on XU4 until tested
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Mar 19, 2019
1 parent f684e19 commit 74988af
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ else
ver=$(/usr/local/bin/nems-info nemsver)
echo "Running NEMS $ver"

platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)

# Setup a patches.log file if one doesn't exist
# This ensures once a patch is run, it doesn't run again
# It can also be used to cross-reference the changelogs to
Expand Down Expand Up @@ -283,16 +285,20 @@ vm.swappiness = 10
echo ""
fi

if ! grep -q "PATCH-000003" /var/log/nems/patches.log; then
echo "PATCH-000003 is available."
echo "This patch changes your networking system to NetworkManager."
echo "This allows you to control your network interfaces as per the"
echo "instructions found at https://docs.nemslinux.com/networking"
echo "*** BACKUP FIRST *** You may lose access to your NEMS server."
echo "Alternatively you can just download a newer NEMS Linux build"
echo "for your platform, released after March 15, 2019."
read -r -p "Do you want to install this patch? [y/N] " PATCH000003
echo ""
if (( $platform == 11 )); then
skip=1 # Means nothing, just skipping untested patch on XU4
else
if ! grep -q "PATCH-000003" /var/log/nems/patches.log; then
echo "PATCH-000003 is available."
echo "This patch changes your networking system to NetworkManager."
echo "This allows you to control your network interfaces as per the"
echo "instructions found at https://docs.nemslinux.com/networking"
echo "*** BACKUP FIRST *** You may lose access to your NEMS server."
echo "Alternatively you can just download a newer NEMS Linux build"
echo "for your platform, released after March 15, 2019."
read -r -p "Do you want to install this patch? [y/N] " PATCH000003
echo ""
fi
fi

# Run the selected patches
Expand Down

0 comments on commit 74988af

Please sign in to comment.