[Netconf-devel] Re: switchconf

martin f krafft madduck@debian.org
Thu, 10 Mar 2005 22:51:27 +0100


--A6N2fC+uXW/VQSAv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

also sprach Thomas Hood <jdthood@aglu.demon.nl> [2005.03.10.2200 +0100]:
> #!/bin/sh
> # ifup hook script for cupsys-client
> [ -x /usr/bin/cupsenable ] || exit 0
> [ "$IF_CUPS_PRINTERS" ] || exit 0
> /usr/bin/cupsenable $IF_CUPS_PRINTERS
> exit 0

nice.

> I don't know -- I don't run X dual headed.

you just need to pass different options to xinit/X, which requires
a file to be dropped and/or deleted.

> >   - postfix/exim/sendmail smarthosts
>=20
> /etc/postfix/main.cf is the last configuration file that I switch
> dynamically.  I use an ifupdown hook script to set the value of
> "relayhost" to the argument of the mail-relay iface option in
> /etc/network/interfaces.  I can provide the script if you want it.

I think I could do that myself. I use TLS everywhere, so I actually
never need to change the relay host, unless I am behind a fascist
firewall, when I can relay via port 443.

> >   - APT sources lists
>=20
> I don't switch this automatically.  In the long run apt should be
> smart enough to choose the closest mirror without having to be
> configured to do so.

long run. :)

So maybe our goal could be to provide little packages like
guessnet-postfix and guessnet-cups, which install these scripts
automatically?

--=20
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
=20
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

--A6N2fC+uXW/VQSAv
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCMMFfIgvIgzMMSnURAnLyAKCxZQAoCopMFthIIeXDwOjvnnIvdwCgjcXw
ok/cBAqQcxzEIRyPBwddSLw=
=Lstm
-----END PGP SIGNATURE-----

--A6N2fC+uXW/VQSAv--