Penned by Stuart Henderson on 20100614 12:28.46, we have:
| On 2010-06-14, rh...@hushmail.com <rh...@hushmail.com> wrote:
| > Hello list,
| >
| > I'm looking to explicitly disable IPv6 on interfaces where it is 
| > not used.  This includes link local addresses.
| >
| > However, this :
| >
| > # cat /etc/hostname.em0                                             
| >                                          
| > description "Some Port"
| > media 1000baseT
| > inet 172.16.176.166 255.255.255.252 NONE
| > -inet6
| > up
| 
| Please try this diff.
| 
| Index: netstart
| ===================================================================
| RCS file: /cvs/src/etc/netstart,v
| retrieving revision 1.129
| diff -u -p -r1.129 netstart
| --- netstart  12 Jan 2010 07:43:41 -0000      1.129
| +++ netstart  14 Jun 2010 11:27:47 -0000
| @@ -111,7 +111,7 @@ ifstart() {
|                       dest)
|                               cmd="$cmd $dtaddr"
|                               ;;
| -                     [a-z!]*)
| +                     [a-z!-]*)
|                               cmd2="$dt $dtaddr"
|                               ;;
|                       esac

I'd like to propose this alternate fix.  What this is doing is ..

 if $1 == "dest"; then
        add $2 as a destination address
 else
        save all args for next iteration
 fi

Given that intended behavior, I believe the following diff is a more
thorough fix, which even `works' properly for comments:

--- netstart
+++ netstart
@@ -111,7 +111,7 @@ ifstart() {
                        dest)
                                cmd="$cmd $dtaddr"
                                ;;
-                       [a-z!]*)
+                       *)
                                cmd2="$dt $dtaddr"
                                ;;
                        esac

-- 
Todd Fries .. t...@fries.net

 _____________________________________________
|                                             \  1.636.410.0632 (voice)
| Free Daemon Consulting, LLC                 \  1.405.227.9094 (voice)
| http://FreeDaemonConsulting.com             \  1.866.792.3418 (FAX)
| 2525 NW Expy #525, Oklahoma City, OK 73112  \  sip:freedae...@ekiga.net
| "..in support of free software solutions."  \  sip:4052279...@ekiga.net
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
                                                 
              37E7 D3EB 74D0 8D66 A68D  B866 0326 204E 3F42 004A
                        http://todd.fries.net/pgp.txt

Reply via email to