mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 09:49:32 +02:00
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
11
meta/packages/ppp-dialin/files/host-peer
Normal file
11
meta/packages/ppp-dialin/files/host-peer
Normal file
@@ -0,0 +1,11 @@
|
||||
-detach
|
||||
defaultroute
|
||||
nocrtscts
|
||||
lock
|
||||
noauth
|
||||
lcp-echo-interval 5
|
||||
lcp-echo-failure 3
|
||||
usepeerdns
|
||||
115200
|
||||
local
|
||||
asyncmap 0
|
||||
3
meta/packages/ppp-dialin/files/ppp-dialin
Normal file
3
meta/packages/ppp-dialin/files/ppp-dialin
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/sbin/pppd call host
|
||||
35
meta/packages/ppp-dialin/ppp-dialin_0.1.bb
Normal file
35
meta/packages/ppp-dialin/ppp-dialin_0.1.bb
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user