while that doesn't do quite what I want, I did not know about crontab
and cron. Glad to find out about that.
Since the original post I have hooked-up an spare 80G IDE drive and
installed Ubuntu 10.10. When I ran this script:
#!/bin/sh
echo 'install rt2870sta modprobe --ignore-install rt2870sta ; /bin/echo
"07d1 3c16" > /sys/bus/usb/drivers/rt2870/new_id' | sudo tee
/etc/modprobe.d/rt2870sta.conf
sudo modprobe rt2870sta
iwconfig
sudo cp 10-d_link.rules /etc/udev/rules.d/
sudo service udev reload
With this single line in the 10-d_link.rules file
# UDEV-Rule for D-LINK DWA-125N ID 07D1 :3C16 SUBSYSTEM=="usb",
SYSFS{idVendor}=="07d1", SYSFS{idProduct}=="3c16", RUN+="/sbin/modprobe
rt2870sta"
The D-Link DWA-125N came to life blinking it's "HeartLight". Then all I had
to do was pick the wireless connection I wanted to connect to, enter the
SSID and PW and I was online. Going in manually is no big deal, it is just a
mater of a little copy-n-paste but having a script do that mundane setup,
with no fat-fingering, that's the computer's job.
Reading about crontab and cron, cron must stand for chronological, this
stuff resides in the same directory the file 10-d_link.rules gets copied to.
Down there where no man, or woman, should go if they don't know what they
are doing or have someone pointing the way that does know what they are
doing or you could really screw-up you OS to where all the king horses and
all the kings men...
Just for reference, I would still like to know it there is away to run a
script with a sudo line in it that only requires the manual entry of the PW
at initial set-up time.