Hello,

 

The function get_networkinfos actualy parses the output of
"/sbin/ifconfig -a"

Trying to match for "inet addr" and "mask" (to make the mater short)

 

But our system is localized (in French ) so addr ---> adr and mask ->
masque ...

It gave us an empty networks.conf that we had to populate by hand...

Without that, rerunning configurator.pl gave the error "Invalid existing
networks configuration file :" at ./configurator.pl line 89

 

Solution:

Line 465 we made a modification ...

If ( ( /inet
addr:((?:\d{1,3}\.){3}\d{1,3}).+Mask:((?:\d{1,3}\.){3}\d{1,3})/ ) || (
/inet adr:((?:\d{1,3}\.){3}\d{1,3}).+Masque:((?:\d{1,3}\.){3}\d{1,3})/ )
) {

 

 

So now it detects the interfaces ....

 

 

Question:

 1) why not using /sbin/ip (from iproute package)

2) the script include the Net::Interface module why not using this ?

 ;)

 


This mail was fully checked by Actiris Mail Antivirus (35)
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to