summaryrefslogtreecommitdiff
path: root/meta/packages/ppp-dialin
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/ppp-dialin')
-rw-r--r--meta/packages/ppp-dialin/files/host-peer11
-rw-r--r--meta/packages/ppp-dialin/files/ppp-dialin3
-rw-r--r--meta/packages/ppp-dialin/ppp-dialin_0.1.bb35
3 files changed, 49 insertions, 0 deletions
diff --git a/meta/packages/ppp-dialin/files/host-peer b/meta/packages/ppp-dialin/files/host-peer
new file mode 100644
index 000000000..e7e2e11d4
--- /dev/null
+++ b/meta/packages/ppp-dialin/files/host-peer
@@ -0,0 +1,11 @@
+-detach
+defaultroute
+nocrtscts
+lock
+noauth
+lcp-echo-interval 5
+lcp-echo-failure 3
+usepeerdns
+115200
+local
+asyncmap 0
diff --git a/meta/packages/ppp-dialin/files/ppp-dialin b/meta/packages/ppp-dialin/files/ppp-dialin
new file mode 100644
index 000000000..ea2771311
--- /dev/null
+++ b/meta/packages/ppp-dialin/files/ppp-dialin
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/usr/sbin/pppd call host
diff --git a/meta/packages/ppp-dialin/ppp-dialin_0.1.bb b/meta/packages/ppp-dialin/ppp-dialin_0.1.bb
new file mode 100644
index 000000000..815ed14d3
--- /dev/null
+++ b/meta/packages/ppp-dialin/ppp-dialin_0.1.bb
@@ -0,0 +1,35 @@
+SECTION = "console/network"
+DESCRIPTION = "Enables PPP dial-in through a serial connection"
+MAINTAINER = "Rene Wagner <rw@handhelds.org>"
+DEPENDS = "ppp"
+RDEPENDS = "ppp"
+PR = "r4"
+LICENSE = "MIT"
+
+SRC_URI = "file://host-peer \
+ file://ppp-dialin"
+
+do_install() {
+ install -d ${D}${sysconfdir}/ppp/peers
+ install -m 0644 ${WORKDIR}/host-peer ${D}${sysconfdir}/ppp/peers/host
+
+ install -d ${D}${sbindir}
+ install -m 0755 ${WORKDIR}/ppp-dialin ${D}${sbindir}
+}
+
+
+pkg_postinst() {
+if test "x$D" != "x"; then
+ exit 1
+else
+ adduser --system --home /dev/null --no-create-home --empty-password --ingroup nogroup -s ${sbindir}/ppp-dialin ppp
+fi
+}
+
+pkg_postrm() {
+if test "x$D" != "x"; then
+ exit 1
+else
+ deluser ppp
+fi
+}