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

Re: Configuring wireless adapters



Jim Wildman wrote:

>On Tue, 30 May 2006, Philip Prindeville wrote:
>
>  
>
>>solution is.  I'd like to be able to get the file as:
>>
>>/etc/sysconfig/network-scripts/ifcfg-iwlan0
>>
>>(or whatever) written out in a semi-automatic way, but I
>>can't figure out how to do that.
>>
>>    
>>
>
>cat > /etc/sysconfig/network-scripts/ifcfg-iwlan0 <<ENDOFIWLAN0
>neat config stuff
>ENDOFIWLAN0
>
>comes to mind.
>
>gogole for 'bash "here document"'
>  
>

Um.... Look at Network.write() in /usr/lib/anaconda/network.py

I was thinking it would be nice to be able to do this in the same fashion
without having to replicate code... Goes back to my earlier comment
about being able to generate configs for interfaces that might be absent
at install time (such as hot-swap PCMCIA cards, etc).

-Philip




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