recipes-core: busybox: Remove dangling files for old versions
bbappend files were removed in 9b654e0a7d
,
when it was decided to drop support for poky versions older than pyro.
This commit is contained in:
parent
96674981e4
commit
9732cc567a
|
@ -1,36 +0,0 @@
|
|||
#!/bin/sh
|
||||
DAEMON=/usr/sbin/ifplugd
|
||||
NAME=ifplugd
|
||||
DESC="Busybox ifplugd Server"
|
||||
ARGS=" -i eth0 -M -I -r /etc/ifplugd.sh"
|
||||
|
||||
test -f $DAEMON || exit 1
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "starting $DESC: $NAME... "
|
||||
/sbin/start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS
|
||||
echo "done."
|
||||
;;
|
||||
stop)
|
||||
echo -n "stopping $DESC: $NAME... "
|
||||
/sbin/start-stop-daemon -K -n $NAME
|
||||
echo "done."
|
||||
;;
|
||||
restart)
|
||||
echo "Not restarting $DESC: $NAME... "
|
||||
;;
|
||||
reload)
|
||||
echo -n "reloading $DESC: $NAME... "
|
||||
killall -HUP $(basename ${DAEMON})
|
||||
echo "done."
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
File diff suppressed because it is too large
Load Diff
|
@ -1,62 +0,0 @@
|
|||
Upstream-Status: Backport
|
||||
Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de>
|
||||
|
||||
From da331d779c19d7d5d4ef05152ee467d617913a01 Mon Sep 17 00:00:00 2001
|
||||
From: Tito Ragusa <farmatito@tiscali.it>
|
||||
Date: Sun, 4 Aug 2013 18:08:40 +0200
|
||||
Subject: [PATCH 001/104] ifplugd: use a larger netlink buffer
|
||||
|
||||
function old new delta
|
||||
check_existence_through_netlink 310 321 +11
|
||||
|
||||
Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
|
||||
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
||||
---
|
||||
networking/ifplugd.c | 14 ++++++++++----
|
||||
1 file changed, 10 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/networking/ifplugd.c b/networking/ifplugd.c
|
||||
index 3cdc2c9..b578f4c 100644
|
||||
--- a/networking/ifplugd.c
|
||||
+++ b/networking/ifplugd.c
|
||||
@@ -451,20 +451,24 @@ static smallint detect_link(void)
|
||||
static NOINLINE int check_existence_through_netlink(void)
|
||||
{
|
||||
int iface_len;
|
||||
- char replybuf[1024];
|
||||
+ /* Buffer was 1K, but on linux-3.9.9 it was reported to be too small.
|
||||
+ * netlink.h: "limit to 8K to avoid MSG_TRUNC when PAGE_SIZE is very large".
|
||||
+ * Note: on error returns (-1) we exit, no need to free replybuf.
|
||||
+ */
|
||||
+ enum { BUF_SIZE = 8 * 1024 };
|
||||
+ char *replybuf = xmalloc(BUF_SIZE);
|
||||
|
||||
iface_len = strlen(G.iface);
|
||||
while (1) {
|
||||
struct nlmsghdr *mhdr;
|
||||
ssize_t bytes;
|
||||
|
||||
- bytes = recv(netlink_fd, &replybuf, sizeof(replybuf), MSG_DONTWAIT);
|
||||
+ bytes = recv(netlink_fd, replybuf, BUF_SIZE, MSG_DONTWAIT);
|
||||
if (bytes < 0) {
|
||||
if (errno == EAGAIN)
|
||||
- return G.iface_exists;
|
||||
+ goto ret;
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
-
|
||||
bb_perror_msg("netlink: recv");
|
||||
return -1;
|
||||
}
|
||||
@@ -507,6 +511,8 @@ static NOINLINE int check_existence_through_netlink(void)
|
||||
}
|
||||
}
|
||||
|
||||
+ ret:
|
||||
+ free(replybuf);
|
||||
return G.iface_exists;
|
||||
}
|
||||
|
||||
--
|
||||
1.7.10.4
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -1,18 +0,0 @@
|
|||
PRINC := "${@int(PRINC) + 1}"
|
||||
|
||||
SRC_URI += "file://ifplugd-use-a-larger-netlink-buffer.patch \
|
||||
file://busybox-ifplugd.sh \
|
||||
file://ifplugd.sh \
|
||||
"
|
||||
|
||||
PACKAGES =+ "${PN}-ifplugd"
|
||||
|
||||
FILES_${PN}-ifplugd = "${sysconfdir}/ifplugd.sh ${sysconfdir}/init.d/busybox-ifplugd.sh"
|
||||
|
||||
INITSCRIPT_PACKAGES += "${PN}-ifplugd"
|
||||
INITSCRIPT_NAME = "busybox-ifplugd.sh"
|
||||
|
||||
do_install_append() {
|
||||
install -m 0755 ${WORKDIR}/ifplugd.sh ${D}${sysconfdir}/
|
||||
install -m 0755 ${WORKDIR}/busybox-ifplugd.sh ${D}${sysconfdir}/init.d/
|
||||
}
|
Loading…
Reference in New Issue