toggle pon/poff internet connection


Forum: DSL Tips and Tricks
Topic: toggle pon/poff internet connection
started by: humpty

Posted by humpty on Dec. 12 2005,19:08
for those of you who know how to make an icon on the destop, and want to toggle their PPPoe connection, you can point it to this script;


#!/bin/bash

cd /home/dsl

if test -f pon; then
  sudo poff -a
  echo internet is OFF
  mv pon poff
else
  sudo pon
  echo internet is ON
  if test -f poff; then
     mv poff pon
  else touch pon
 fi
fi

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.