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

Re: [rfc] New package idea with policy problems

On Fri, Jun 09, 2000 at 10:33:12PM +1000, Anthony Towns wrote:
> /etc/network/if-up.d/10update-resolv == /etc/network/if-down.d/10update-resolv
> 			perl -i -n -e '$ignore = 1 if (m/^..BEGIN AUTOAJADDED$/); print unless ($ignore); $ignore = 0 if (m/^..END AUTOAJADDED$/);' /etc/resolv.conf

Err, that should be "BEGIN ADDED" not "BEGIN AUTOAJADDED". Or at least
it should've matched the previous echo "#BEGIN ADDED", you can have AUTOAJ
throughout your resolv.conf if you like... :)

To actually test these, you can do something like:

	# echo home > /etc/scheme
	# ifup -n -v eth0
	# ifup -v eth0=work
	# ifdown -v eth0
	# echo nowhere > /etc/scheme
	# ifup -v eth0


Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. GPG encrypted mail preferred.

  ``We reject: kings, presidents, and voting.
                 We believe in: rough consensus and working code.''
                                      -- Dave Clark

Attachment: pgp1LBpWeIz20.pgp
Description: PGP signature

Reply to: