[PATCH 1/4] Write HOTPLUG=yes to ifcfg file is ONBOOT=no (#498086).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 network.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/network.py b/network.py
index 3572374..435523c 100644
--- a/network.py
+++ b/network.py
@@ -157,9 +157,12 @@ class NetworkDevice(SimpleConfigFile):
 
             if key == 'ONBOOT':
                 onBootWritten = 1
+                if forceOffOnBoot or self.info[key].lower() == 'no':
+                    s = s + "HOTPLUG=yes\n"
 
         if not onBootWritten:
             s = s + 'ONBOOT=no\n'
+            s = s + "HOTPLUG=yes\n"
 
         return s
 
-- 
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux