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

[augeas-devel] Fix interfaces lens for valid options



The /etc/network/interfaces lens doesn't accept interface options with
underscores in them, which are perfectly valid.  This patch fixes the
problem:

--- interfaces.aug.orig	2009-05-07 14:38:21.000000000 +1000
+++ interfaces.aug	2009-05-07 14:34:00.000000000 +1000
@@ -41,7 +41,7 @@
 
 (* Define additional lines for mluti-line stanzas *)
 let stanza_option = [  del /[ \t]*/ "   " 
-                     . key  ( /[a-z-]+/ - stanza_word )
+                     . key  ( /[a-z_-]+/ - stanza_word )
                      . sep_spc
                      . sto_to_eol
                      . eol ]



-- 
Matt Palmer - Systems Administrator

A view into the Anchor Engineroom: http://anchor.com.au/blog/
Web Hosting Knowledgebase: http://anchor.com.au/wiki/

Anchor Systems Pty Ltd - Hosting Heavyweights
W: http://www.anchor.com.u - E: support anchor com au
Phone: 1300 883 979 - Fax: 02 8296 5199



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