sudo in a shell script
Lee Braiden
lee_b at digitalunleashed.com
Fri Jul 15 10:07:21 UTC 2005
On Friday 15 July 2005 10:50, Behrang Saeedzadeh wrote:
> sudo rmmod ipw2200
> sudo modprobe ipw2200
You probably want to use a script which has been setuid'd to root, ratehr than
using sudo like this. Putting passwords into a script file would be terribly
insecure, and is unnecessary.
On the actual commands: you're removing the driver, and reinstalling it. That
shouldn't be necessary either: just run ifdown to drop the connection (as
opposed to dropping the device the connection runs over), and ifup to bring
it up again.
I think the wireless connection should recover eventually on its own anyway,
though. There may be timings you can alter if you want it to recover more
quickly.
--
Lee Braiden
http://www.DigitalUnleashed.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050715/bf96971b/attachment.sig>
More information about the ubuntu-users
mailing list