Commit 27d14da 1 parent e9554e2 commit 27d14da Copy full SHA for 27d14da
File tree 1 file changed +13
-1
lines changed
toolkit/perfsonar-toolkit/scripts/system_environment
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ if [ "$1" == "new" ]; then
31
31
disable_service kudzu
32
32
disable_service mdmonitor
33
33
disable_service mdmpd
34
- disable_service NetworkManager
35
34
disable_service ndt
36
35
disable_service netfs
37
36
disable_service nfs
@@ -50,4 +49,17 @@ if [ "$1" == "new" ]; then
50
49
disable_service tuned
51
50
disable_service ypbind
52
51
disable_service yum-updatesd
52
+
53
+ # NetworkManager gets disabled on EL8 and earlier and left alone
54
+ # on EL9+.
55
+
56
+ if [ -e /etc/redhat-release ]
57
+ then
58
+ MAJOR_VERSION=$( sed -e ' s/^.*release\s\+//; s/[^0-9].*$//' /etc/redhat-release)
59
+ if [ " ${MAJOR_VERSION} " -lt 9 ]
60
+ then
61
+ disable_service NetworkManager
62
+ fi
63
+ fi
64
+
53
65
fi
You can’t perform that action at this time.
0 commit comments