How to detect the number of network adapters installed from kickstart file for network config?

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

 



My kickstart file is usually used on systems with 1 or 2 network interfaces installed. If my kickstart file has the following lines:

network --device eth0 --bootproto dhcp
network --device eth1 --onboot no --bootproto dhcp


It will fail if I use it on a system with only 1 network interface since eth1 doesn't exist. 

>From a kicksstart file how do I detect the number of network interfaces installed on the system and then only assign eth1 as above if that number is 2 or more? If it matters, it's possible the network interfaces are not plugged into the network when the kickstart is run. Thanks.


      

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux