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

Re: is DEVICE in ifcfg-* redundant?



On Fri, Aug 10, 2007 at 01:33:55PM +0200, Stepan Kasal wrote:

> 1) Are there cases, where the file name differs from ifcfg-$DEVICE?

Yes, life is not that easy.

There is also DEVNAME and in existing (more complex) PPP config setups
I have for example in a file called ifcfg-peer10:

  DEVICE=ppp10
  DEVNAME=peer10

> 2) Could we agree that if DEVICE is not set, it defaults to
> 	${CONFIG##*ifcfg-}
>    ?  (I.e., source_config in network-functions would set it.)

DEVNAME defaults to ${CONFIG##*ifcfg-} and this does not need to
be the same as DEVICE.  So what you actually propose is to let
DEVICE default to DEVNAME.

-- 
--    Jos Vos <jos xos nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


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