Penned by Stuart Henderson on 20100614 12:28.46, we have:
| On 2010-06-14, [email protected] <[email protected]> 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 .. [email protected]
_____________________________________________
| \ 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:[email protected]
| "..in support of free software solutions." \ sip:[email protected]
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
37E7 D3EB 74D0 8D66 A68D B866 0326 204E 3F42 004A
http://todd.fries.net/pgp.txt