Hello Moa,

> Oct  3 03:29:42 ifsdev pppoa3[4538]: A previous instance seems to be running

 If you have previous instances running you need to remove stale run files and kill
existing pppoa3 instances before you restart the modem. Try the following script.
Don't forget to set FIRMWARE to where your firmware is located.

. /etc/rc.d/init.d/functions

echo -n "Removing stale run file"
rm -f /var/run/pppoa3-modem1.pid
RETVAL=$?
if [ "$RETVAL" -eq "0" ]; then
  echo_success
else
  echo_failure
fi
echo

echo -n "Killing pppoa3 instances"
ps wax | grep pppoa3 | grep -v grep | cut -b 1-5 | xargs -i kill -KILL {}
RETVAL=$?
if [ "$RETVAL" -eq "0" ]; then
  echo_success
else
  echo_failure
fi
echo

echo -n "Loading firmware for USB modem"
/usr/sbin/modem_run -v 1 -s -f $FIRMWARE
RETVAL=$?
if [ "$RETVAL" -eq "0" ]; then
  echo_success
else
  echo_failure
fi
echo

echo -n "Setting up ADSL connection"
/usr/sbin/pppd call adsl
RETVAL=$?
if [ "$RETVAL" -eq "0" ]; then
  echo_success
else
  echo_failure
  echo
  exit 1
fi
echo

echo -n "Copying /etc/ppp/resolv.conf to /etc/resolv.conf"
cp /etc/ppp/resolv.conf /etc/resolv.conf
RETVAL=$?
if [ "$RETVAL" -eq "0" ]; then
  echo_success
else
  echo_failure
fi
echo

Bye,
Leonard.

--
How clean is a war when you shoot around nukelar waste?
Stop the use of depleted uranium ammo!
End all weapons of mass destruction.


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se d�sinscrire : mailto:[EMAIL PROTECTED]

        

Reply via email to