~ubuntu-branches/ubuntu/precise/pppconfig/precise

« back to all changes in this revision

Viewing changes to pppconfig

  • Committer: Package Import Robot
  • Author(s): Micah Gersten
  • Date: 2011-12-13 11:05:42 UTC
  • mfrom: (1.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20111213110542-avf077w390rbmlpt
Tags: 2.3.18+nmu3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - lsb init script
  - use /var/cache/pppconfig
  - unbreak "change" so it works for non-standard devices
  - debian/postinst: On upgrade, remove the old dns-clean rcS.d symlink and
    install into runlevels 1-5 instead.
  - dns-clean: Update LSB headers.

* Don't update the po files on clean; Add update-po target; This decreases the
  overall diff
  - update debian/rules
* Drop Required-Start gdm diff as we don't use insserv in Ubuntu by default
  (LP: #671308)
  - update dns-clean

Show diffs side-by-side

added added

removed removed

Lines of Context:
677
677
}
678
678
 
679
679
sub ipdefault($) {
680
 
  $temp=inputbox (gettext("You almost certainly do not want to change this from the default value of noipdefault.  This not the place for your nameserver ip numbers.  It is the place for your ip number if and only if your ISP has assigned you a static one.  If you have been given only a local static ip, enter it with a colon at the end, like this: 192.168.1.2:  If you have been given both a local and a remote ip, enter the local ip, a colon, and the remote ip, like this: 192.168.1.2:10.203.1.2 "),
 
680
  $temp=inputbox (gettext("You almost certainly do not want to change this from the default value of noipdefault. This is not the place for your nameserver ip numbers.  It is the place for your ip number if and only if your ISP has assigned you a static one.  If you have been given only a local static ip, enter it with a colon at the end, like this: 192.168.1.2:  If you have been given both a local and a remote ip, enter the local ip, a colon, and the remote ip, like this: 192.168.1.2:10.203.1.2"),
681
681
gettext("IP Numbers"),  "$$ipdefault");
682
682
  return "CANCEL" if ( $result != 0 );
683
683
  $$ipdefault = $temp;
951
951
 
952
952
sub demand($) {
953
953
  $a = $$demand ? "enabled" : "disabled";
954
 
  yesnobox(sprintf(gettext("Selecting YES will enable demand dialing for this provider.  Selecting NO will disable it.  Note that you will still need to start pppd with pon: pppconfig will not do that for you.  When you do so, pppd will go into the background and wait for you to attempt access something on the Net, and then dial up the ISP.  If you do enable demand dialing you will also want to set an idle-timeout so that the link will go down when it is idle.  Demand dialing is presently %s."), $a), gettext("Demand Command"));
 
954
  yesnobox(sprintf(gettext("Selecting YES will enable demand dialing for this provider.  Selecting NO will disable it.  Note that you will still need to start pppd with pon: pppconfig will not do that for you.  When you do so, pppd will go into the background and wait for you to attempt to access something on the Net, and then dial up the ISP.  If you do enable demand dialing you will also want to set an idle-timeout so that the link will go down when it is idle.  Demand dialing is presently %s."), $a), gettext("Demand Command"));
955
955
 
956
956
  if( $result ) { # true $result means no.
957
957
    $$demand = '';
1695
1695
}
1696
1696
 
1697
1697
sub usage() {
1698
 
  die(gettext("Usage: pppconfig [--version] | [--help] | [[--dialog] | [--whiptail] | [--gdialog]\
1699
 
 [--noname] | [providername]]\
1700
 
\'--version\' prints the version. \'--help\' prints a help message.\
1701
 
\'--dialog\' uses dialog instead of gdialog. \'--whiptail\' uses whiptail.
1702
 
\'--gdialog\' uses gdialog.  \'--noname\' forces the provider name to be \'provider\'.  
 
1698
  die(gettext("Usage: pppconfig [--version] | [--help] | [[--dialog] | [--whiptail] | [--gdialog] [--noname] | [providername]]\
 
1699
\'--version\' prints the version.\
 
1700
\'--help\' prints a help message.\
 
1701
\'--dialog\' uses dialog instead of gdialog.\
 
1702
\'--whiptail\' uses whiptail.\
 
1703
\'--gdialog\' uses gdialog.\
 
1704
\'--noname\' forces the provider name to be \'provider\'.\
1703
1705
\'providername\' forces the provider name to be \'providername\'.\n"));
1704
1706
}
1705
1707
 
1723
1725
end. \
1724
1726
\
1725
1727
Since pppconfig makes changes in system configuration files, you must be \
1726
 
logged in as root or use sudo to run it. \
1727
 
 \n"));
 
1728
logged in as root or use sudo to run it.\
 
1729
\n"));
1728
1730
  usage();
1729
1731
}
1730
1732