View Single Post
Old 04-27-2005, 09:05 AM   #2
Zire
Fanatic
Zire can read faster than his screen refreshesZire can read faster than his screen refreshesZire can read faster than his screen refreshesZire can read faster than his screen refreshesZire can read faster than his screen refreshesZire can read faster than his screen refreshesZire can read faster than his screen refreshesZire can read faster than his screen refreshesZire can read faster than his screen refreshesZire can read faster than his screen refreshesZire can read faster than his screen refreshes
 
Zire's Avatar
 
Posts: 522
Karma: 14050
Join Date: May 2003
Location: Astoria, NY
Device: Zire 71
Untested Solution Found: I did a google search and as it so happens some other users were having a similiar problem as me. The fix is so simple its funny but I haven't tested it yet cause the problem has not come back yet for me. Users reported that it worked for them.

In the terminal type
Code:
sudo ifconfig en0 down ; sudo ifconfig en0 up
You will be asked for your password which is your normal log in password.

I also found two applescripts that do the work for you. One you don't need to enter a password but anyone with access to your computer while it is logged in can read your admin password. The other one you need to put in your password when prompted. Paste the text into the script editor and save as an application so you can launch it when needed.

Apple Script 1

Code:
do shell script "sudo ifconfig en0 down; sudo ifconfig en0 up" password "your_password" with administrator privileges
Replace "your_password" with the one you usually log in with.

Apple Script 2

Code:
property userpassword : ""

if userpassword is "" then
   display dialog "Please enter your password:" default answer ""
   set userpassword to text returned of result
-- The repeat section below is an optional error checking routine to ensure the password is valid
set the_password to "Undefined"
   repeat until the_password is "Correct"
      try
         set theFinderPID to do shell script "ps -axww | /usr/bin/grep '[/]Finder'| awk '{print $1}' | head -1"
         do shell script "renice 1 " & theFinderPID password userpassword with administrator privileges
         do shell script "renice 0 " & theFinderPID password userpassword with administrator privileges
	   set the_password to "Correct"
	on error
         display dialog "Sorry, the password entered was not correct. Please try again:" default answer ""
         set userpassword to text returned of result
     end try
   end repeat
end if

do shell script "sudo ifconfig en0 down; sudo ifconfig en0 up" password userpassword with administrator privileges
Zire is offline   Reply With Quote