From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/ppp-dsl/files/dsl-provider | 71 +++++++++++++++++++++++++++++++++++ recipes/ppp-dsl/files/ppp_on_boot.dsl | 14 +++++++ recipes/ppp-dsl/ppp-dsl_0.1.bb | 30 +++++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 recipes/ppp-dsl/files/dsl-provider create mode 100755 recipes/ppp-dsl/files/ppp_on_boot.dsl create mode 100644 recipes/ppp-dsl/ppp-dsl_0.1.bb (limited to 'recipes/ppp-dsl') diff --git a/recipes/ppp-dsl/files/dsl-provider b/recipes/ppp-dsl/files/dsl-provider new file mode 100644 index 0000000000..6feaf55752 --- /dev/null +++ b/recipes/ppp-dsl/files/dsl-provider @@ -0,0 +1,71 @@ +# Configuration file for PPP, using PPP over Ethernet +# to connect to a DSL provider. +# +# See the manual page pppd(8) for information on all the options. + +## +# Section 1 +# +# Stuff to configure... + +# MUST CHANGE: Uncomment the following line, replacing the user@provider.net +# by the DSL user name given to your by your DSL provider. +# (There should be a matching entry in /etc/ppp/pap-secrets with the password.) +# +# maybe helpful for germany: +# T-DSL business PAP "t-online-com/111111111111@t-online-com.de" +# T-DSL t-online PAP "[ANSCHLUSSKENNUNG][T_ONLINE_NUMMER]#[MITBENUTZER]@t-online.de" +# hansenet CHAP "net0815@hansenet.de" +# +#user "" + +# Use the pppoe program to send the ppp packets over the Ethernet link +# This line should work fine if this computer is the only one accessing +# the Internet through this DSL connection. This is the right line to use +# for most people. +pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452" + +# If the computer connected to the Internet using pppoe is not being used +# by other computers as a gateway to the Internet, you can try the following +# line instead, for a small gain in speed: +#pty "/usr/sbin/pppoe -I eth0 -T 80" + +# An even more conservative version of the previous line, if things +# don't work using -m 1452... +#pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412" + + +# The following two options should work fine for most DSL users. + +# Assumes that your IP address is allocated dynamically +# by your DSL provider... +noipdefault +# Comment out if you already have the correct default route installed +defaultroute +replacedefaultroute +usepeerdns + +## +# Section 2 +# +# Uncomment if your DSL provider charges by minute connected +# and you want to use demand-dialing. +# +# Disconnect after 300 seconds (5 minutes) of idle time. + +#demand +#idle 300 + +## +# Section 3 +# +# You shouldn't need to change these options... + +hide-password +lcp-echo-interval 20 +lcp-echo-failure 3 +# Override any connect script that may have been set in /etc/ppp/options. +connect /bin/true +noauth +persist +mtu 1492 diff --git a/recipes/ppp-dsl/files/ppp_on_boot.dsl b/recipes/ppp-dsl/files/ppp_on_boot.dsl new file mode 100755 index 0000000000..f1d5183b38 --- /dev/null +++ b/recipes/ppp-dsl/files/ppp_on_boot.dsl @@ -0,0 +1,14 @@ +#!/bin/sh +# + +# The location of the ppp daemon itself (shouldn't need to be changed) +PPPD=/usr/sbin/pppd + +# The Ethernet interface the DSL modem is connected to. If you change this, +# you also need to edit the file /etc/ppp/peers/dsl-provider. +INTERFACE=eth0 + +# Bring the interface up +/sbin/ifconfig $INTERFACE up + +$PPPD call dsl-provider diff --git a/recipes/ppp-dsl/ppp-dsl_0.1.bb b/recipes/ppp-dsl/ppp-dsl_0.1.bb new file mode 100644 index 0000000000..8d63e8fc47 --- /dev/null +++ b/recipes/ppp-dsl/ppp-dsl_0.1.bb @@ -0,0 +1,30 @@ +SECTION = "console/network" +DESCRIPTION = "Enables PPP dial-in through a DSL connection" +LICENSE = "PD" +DEPENDS = "ppp rp-pppoe" +RDEPENDS = "ppp rp-pppoe" +RRECOMMENDS = "kernel-module-ppp-async kernel-module-ppp-generic kernel-module-slhc" +PR = "r5" + +SRC_URI = "file://dsl-provider \ + file://ppp_on_boot.dsl" + +do_install() { + install -d ${D}${sysconfdir}/ppp/peers + install -m 0644 ${WORKDIR}/dsl-provider ${D}${sysconfdir}/ppp/peers/ + install -m 0755 ${WORKDIR}/ppp_on_boot.dsl ${D}${sysconfdir}/ppp/ +} + +pkg_postinst() { +if test "x$D" != "x"; then + exit 1 +else + if ! test -e ${sysconfdir}/ppp/ppp_on_boot; then + ln -s ppp_on_boot.dsl ${sysconfdir}/ppp/ppp_on_boot + fi +fi +} + +PACKAGE_ARCH = "all" + +CONFFILES_${PN} = "${sysconfdir}/ppp/peers/dsl-provider" -- cgit 1.2.3-korg