Help with NetworkManagerDispatcher script
- From: Derek Cramer <cramerd gmail com>
- To: networkmanager-list gnome org
- Subject: Help with NetworkManagerDispatcher script
- Date: Thu, 19 Jan 2006 12:25:11 +0000
After discovering NetworkManagerDispatcher, I made a small script to add
extra search domains (that aren't provided by dhcp) to resolv.conf if I
am on a certain network (in work). This works well, but I am wondering
if there is an easy/reliable way to get the ip address of an interface
from NetworkManager via a shell script? Currently I use ifconfig & awk
to determine the first digit of the address and go from there, which is
a bit hacky, but does work.
PS. I am an admin, not a programmer, so my programming skills don't
extend much beyond shell scripting.
] [Thread Prev