Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A workaround for dial-up disconnects and fax receive' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A workaround for dial-up disconnects and fax receive
Authored by: kwindrem on Sep 07, '04 01:14:21PM
Here's another attempt at posting the script contents.


# check for fax/ppp conflicts and notify user

# pppd will fail/hang if a dial-up attempt is made within 20 seconds of waking with efax running
# this script checks for that condition,
# disables dial-ups during the critical period
# and provides status for the user

# Sleepwatcher's rc.wakup calls this script
# Add this line to /etc/rc.wakup
# this script sleeps for 20 seconds!
# run in background to avoid delaying the caller

# /Applications/Utilities/WakeupPPPchecks&

# check to see if a delay is needed
if [ `ps -auxww | grep -v grep | grep -c efax` != 0 ]; then

# disable dialup connections -- edit to select proper location!
	scselect "modem disabled"

# display progress bar dialog
# thanks to Kevin Hendricks for this code
# create a named pipe
rm -f /tmp/hpipe
mkfifo /tmp/hpipe

# create a background job which takes its input from the named pipe
/Applications/Utilities/CocoaDialog.app/Contents/MacOS/CocoaDialog progressbar --percent 0 --title "Dial-up Delay" --text "Please wait. Dial out to the internet is disabled while system stabilizes." < /tmp/hpipe &

# associate file descriptor 3 with that pipe and send a character through the pipe
exec 3<> /tmp/hpipe

# delay 20 seconds 1 sec at a time and update progress bar
for ((delay=0; $delay<=100; delay=$delay+5)); do
{
	echo -n $delay >&3
	sleep 1
}
done;

# now turn off the progress bar by closing file descriptor 3
exec 3>&-

# wait for all background jobs to exit
wait
rm -f /tmp/hpipe

# reenable dial out -- edit to select proper location!
	scselect "Normal"
fi


[ Reply to This | # ]
A workaround for dial-up disconnects and fax receive
Authored by: mudhiker on Sep 08, '04 10:45:44PM

I think this bug (which has been bothering me lately) showed up with 10.3.5. The new security update does something to PPPD and I don't seem to have the mysterious ppp hanging problem anymore. I think it's fixed. I troubleshat it for several days, noticed the 20 second delay, then this hint appeared and my own observations were confirmed. No joy with the apple support site though. I never can find much useful on that.



[ Reply to This | # ]