On 21/06/06, James <[EMAIL PROTECTED]> wrote:
On 6/21/06, Philip Dillon-Thiselton <[EMAIL PROTECTED] > wrote:
> OK, so that's sorted, what about checking what type of interface it is,
> though?

just modify the netcfg so that it wont run ifconfig, if IFOPTS is undefined.

Currently it's:
if IFOPTS=dhcp
run dhcp
else
run static config

just change that else to,

else if [ ! -z IFOPTS or ! IFOPTS = "" ]

excuse the crap pseudocode. Then a user can simply comment out ifopts,
or blank it, and it wont run ifconfig or dhcp. then it IS that easy as
adding a ppp section.
 
Well, no, it's not because we still have to be able to stop and restart ppp interfaces properly.  Also it appears counter-intuitive to me that something should need to be left blank in order to allow something to work.  I'm sure I'm not the only one that thinks that?

James

--
iphitus - Beyond Maintainer, Arch Trusted User, Arch Developer.
Home: iphitus.loudas.com

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to