[ltp] Don't trust the kensington lock socket

Marius Gedminas linux-thinkpad@linux-thinkpad.org
Fri, 8 Feb 2008 23:11:19 +0200


--cNdxnHkX5QqsyA0e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 08, 2008 at 02:21:09PM -0500, Bill Hudacek wrote:
> Interesting idea, I like it, but /etc/iftab is deprecated.  In Ubuntu=20
> 7.10, use /etc/udev/rules.d/70-persistent-net.rule , for example.
>=20
> Note that the file format is different, though the script only requires=
=20
> minor adjustment...
>=20
> HH=3Dwww.MYSERVER.com; wget -qO /dev/null http://$HH/$(echo=20
> $(hostname)_$(grep eth0 /etc/udev/rules.d/70-persistent-net.rules | awk=
=20
> -F\" '{print $6}') |tr -c [:alnum:] _)

Why parse a possibly incomplete configuration file when you can get the
actual MAC address by parsing ifconfig (or "ip link show eth0") output?

Marius Gedminas
--=20
Microsoft -- because God hates us.

--cNdxnHkX5QqsyA0e
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD4DBQFHrMV3kVdEXeem148RAoCAAJdW69CjkDSBfuzucd9Ow5+6/aIrAJ4now+E
g/evLpDSAe1hh6d4HdPV3w==
=Skqa
-----END PGP SIGNATURE-----

--cNdxnHkX5QqsyA0e--