sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
Re: [SM-Discuss] netconf.sh - a network configration tool
- From: nealbirch <nealbirch AT attbi.com>
- To: Casey Harkins <charkins AT upl.cs.wisc.edu>
- Cc: sm-discuss AT lists.ibiblio.org
- Subject: Re: [SM-Discuss] netconf.sh - a network configration tool
- Date: Mon, 28 Oct 2002 04:53:00 -0500
Casey Harkins wrote:
I just threw this together today, looking for people to check it out and
give me some feedback.
This script provides a menu interface for managing the network device
files in /etc/sysconfig/network. This could replace the current network
device configuration stuff in the CONFIGURE script of the net-tools spell.
It could also be installed to allow users to modify their network
configuration without having to re-cast any spells.
If you want to play without screwing with your actual
/etc/sysconfig/network directory, just change the ROOTCHECK and NETDEVDIR
variables near the top of the script. Look for the comment labeled
"Testing Tips" which gives more details.
-casey
We changed something on you while you werent' watching in the NEW IMPROVED net-tools spell. For checking purposes, we re-named device files in /etc/sysconfig/network with the extension .dev, makes it easier to weed out trash and backups when we put the networking.sh back.
You can use something like this once the new net-tools is installed:
#!/bin/bash
netdevdir=/etc/sysconfig/network
devices=$(ls $netdevdir | grep dev$ | cut -d. -f1)
echo devices
# end bash code
which should echo the list of valid devices; drop the cut command to get the list of valid device files in /etc/sysconfig/network. "grep dev$" looks for files which end in .dev, so unless someone goes out of their way to screw this up and puts a file in there that ends in .dev and isn't a device, .txt files, files ending in ~ and so on won't interfere with what the networking.sh uses to process it's little self.
Good work Casey, I was going to rewrite net-tools to give one the option not to reinstall the net-tools if you just wanted to add a device file, but maybe we should think about adding an admin-tool to adjust things like this, using just bash and a few basic commands.
--
"You can fool some of the people all of the time
--and those are the ones you have to concentrate on!"
GW Bush-- from the N.Y. Times
-
[SM-Discuss] netconf.sh - a network configration tool,
Casey Harkins, 10/28/2002
-
Re: [SM-Discuss] netconf.sh - a network configration tool,
nealbirch, 10/28/2002
-
Re: [SM-Discuss] netconf.sh - a network configration tool,
Casey Harkins, 10/28/2002
-
Re: [SM-Discuss] netconf.sh - a network configration tool,
Casey Harkins, 10/28/2002
- Re: [SM-Discuss] netconf.sh - a network configration tool, Casey Harkins, 10/28/2002
-
Re: [SM-Discuss] netconf.sh - a network configration tool,
Casey Harkins, 10/28/2002
-
Re: [SM-Discuss] netconf.sh - a network configration tool,
Casey Harkins, 10/28/2002
-
Re: [SM-Discuss] netconf.sh - a network configration tool,
nealbirch, 10/28/2002
Archive powered by MHonArc 2.6.24.