diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2018-10-07 19:12:56 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-10-07 21:45:20 -0700 |
commit | 9254a77848ec36a86e01b5a6d499c44a7be067d9 (patch) | |
tree | 99f999a08be7f6a07f611f1fbd78e4401b2e1098 /meta-oe/recipes-connectivity | |
parent | 99ecc889a0909d54b6bb5c795087585adde1bfbd (diff) | |
download | meta-openembedded-9254a77848ec36a86e01b5a6d499c44a7be067d9.tar.gz |
umip: fix recipe location typo
Since `36983fe umip: move to meta-networking' applied,
it was moved to invalid location.
Fix prior partial move to meta-networking
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-connectivity')
7 files changed, 0 insertions, 440 deletions
diff --git a/meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch b/meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch deleted file mode 100644 index 8e5f4da36..000000000 --- a/meta-oe/recipes-connectivity/umip/files/0001-Add-format-string-to-fprintf-call.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | From a0ad5128d14b022239445e251cf4a9826e86aa96 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 27 Jun 2017 07:48:31 -0700 | ||
4 | Subject: [PATCH] Add format string to fprintf() call | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | src/vt.c | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/src/vt.c b/src/vt.c | ||
12 | index 795d393..a533d3d 100644 | ||
13 | --- a/src/vt.c | ||
14 | +++ b/src/vt.c | ||
15 | @@ -499,7 +499,7 @@ static int vt_cmd_dump_candidates(const struct vt_handle *vh, | ||
16 | } | ||
17 | llen += cmdlen; | ||
18 | |||
19 | - ret = fprintf(vh->vh_stream, e->cmd); | ||
20 | + ret = fprintf(vh->vh_stream, "%s", e->cmd); | ||
21 | if (ret < 0) | ||
22 | return ret; | ||
23 | |||
24 | -- | ||
25 | 2.13.2 | ||
26 | |||
diff --git a/meta-oe/recipes-connectivity/umip/files/0001-replace-SIGCLD-with-SIGCHLD-and-include-sys-types.h.patch b/meta-oe/recipes-connectivity/umip/files/0001-replace-SIGCLD-with-SIGCHLD-and-include-sys-types.h.patch deleted file mode 100644 index 153bced39..000000000 --- a/meta-oe/recipes-connectivity/umip/files/0001-replace-SIGCLD-with-SIGCHLD-and-include-sys-types.h.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | From f567740cf64978ac9db014c786b6d0267b244f33 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 4 Mar 2018 22:30:30 -0800 | ||
4 | Subject: [PATCH 1/2] replace SIGCLD with SIGCHLD and include sys/types.h | ||
5 | |||
6 | Fixes | ||
7 | main.c:129:10: error: 'SIGCLD' undeclared (first use in this function); did you mean 'SIGCHLD'? | ||
8 | signal(SIGCLD, sig_child); | ||
9 | ^~~~~~ | ||
10 | SIGCHLD | ||
11 | |||
12 | main.c:125:2: warning: implicit declaration of function 'umask' [-Wimplicit-function-declaration] | ||
13 | umask(0); | ||
14 | ^~~~~ | ||
15 | |||
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
17 | --- | ||
18 | Upstream-Status: Pending | ||
19 | |||
20 | src/main.c | 5 +++-- | ||
21 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
22 | |||
23 | Index: git/src/main.c | ||
24 | =================================================================== | ||
25 | --- git.orig/src/main.c | ||
26 | +++ git/src/main.c | ||
27 | @@ -133,9 +133,9 @@ static void daemon_start(int ignsigcld) | ||
28 | |||
29 | if (ignsigcld) { | ||
30 | #ifdef SIGTSTP | ||
31 | - signal(SIGCLD, sig_child); | ||
32 | + signal(SIGCHLD, sig_child); | ||
33 | #else | ||
34 | - signal(SIGCLD, SIG_IGN); | ||
35 | + signal(SIGCHLD, SIG_IGN); | ||
36 | #endif | ||
37 | } | ||
38 | } | ||
diff --git a/meta-oe/recipes-connectivity/umip/files/0001-support-openssl-1.1.x.patch b/meta-oe/recipes-connectivity/umip/files/0001-support-openssl-1.1.x.patch deleted file mode 100644 index d8355e25f..000000000 --- a/meta-oe/recipes-connectivity/umip/files/0001-support-openssl-1.1.x.patch +++ /dev/null | |||
@@ -1,88 +0,0 @@ | |||
1 | From 62784e8b6df8ff3a907c1f816154808bea9d7064 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Tue, 25 Sep 2018 14:38:14 +0800 | ||
4 | Subject: [PATCH] support openssl 1.1.x | ||
5 | |||
6 | Long time no maintain from upstream since 2013 | ||
7 | (git://git.umip.org/umip/umip.git), backport a | ||
8 | fix from openSUSE | ||
9 | |||
10 | Upstream-Status: Backport [openSUSE] | ||
11 | http://ftp.gwdg.de/pub/opensuse/source/distribution/leap/15.0/repo/oss/src/mipv6d-2.0.2.umip.0.4-lp150.1.2.src.rpm | ||
12 | |||
13 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
14 | --- | ||
15 | src/keygen.c | 12 ++++++++++++ | ||
16 | src/mh.c | 17 ++++++++++++++++- | ||
17 | 2 files changed, 28 insertions(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/src/keygen.c b/src/keygen.c | ||
20 | index e434a38..b902644 100644 | ||
21 | --- a/src/keygen.c | ||
22 | +++ b/src/keygen.c | ||
23 | @@ -172,6 +172,7 @@ static void build_kgen_token(struct in6_addr *addr, uint8_t *nonce, | ||
24 | uint8_t tmp[20]; | ||
25 | #ifdef HAVE_LIBCRYPTO | ||
26 | unsigned int len = 20; | ||
27 | +#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x1010006fL | ||
28 | HMAC_CTX ctx; | ||
29 | |||
30 | HMAC_CTX_init(&ctx); | ||
31 | @@ -182,6 +183,17 @@ static void build_kgen_token(struct in6_addr *addr, uint8_t *nonce, | ||
32 | HMAC_Final(&ctx, tmp, &len); | ||
33 | HMAC_CTX_cleanup(&ctx); | ||
34 | #else | ||
35 | + HMAC_CTX *ctx; | ||
36 | + ctx = HMAC_CTX_new(); | ||
37 | + HMAC_Init_ex(ctx, key_cn, sizeof(key_cn), EVP_sha1(), NULL); | ||
38 | + HMAC_Update(ctx, (unsigned char *)addr, sizeof(*addr)); | ||
39 | + HMAC_Update(ctx, nonce, NONCE_LENGTH); | ||
40 | + HMAC_Update(ctx, &id, sizeof(id)); | ||
41 | + HMAC_Final(ctx, tmp, &len); | ||
42 | + HMAC_CTX_free(ctx); | ||
43 | +#endif // End of defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x1010006fL | ||
44 | + | ||
45 | +#else | ||
46 | HMAC_SHA1_CTX ctx; | ||
47 | |||
48 | HMAC_SHA1_init(&ctx, key_cn, sizeof(key_cn)); | ||
49 | diff --git a/src/mh.c b/src/mh.c | ||
50 | index cba9a33..212eb5a 100644 | ||
51 | --- a/src/mh.c | ||
52 | +++ b/src/mh.c | ||
53 | @@ -518,9 +518,10 @@ static int calculate_auth_data(const struct iovec *iov, int iovlen, | ||
54 | |||
55 | #ifdef HAVE_LIBCRYPTO | ||
56 | unsigned int len = HMAC_SHA1_HASH_LEN; | ||
57 | - HMAC_CTX ctx; | ||
58 | const EVP_MD *evp_md = EVP_sha1(); | ||
59 | |||
60 | +#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x1010006fL | ||
61 | + HMAC_CTX ctx; | ||
62 | HMAC_CTX_init(&ctx); | ||
63 | HMAC_Init_ex(&ctx, key, HMAC_SHA1_KEY_SIZE, evp_md, NULL); | ||
64 | |||
65 | @@ -532,6 +533,20 @@ static int calculate_auth_data(const struct iovec *iov, int iovlen, | ||
66 | HMAC_Final(&ctx, buf, &len); | ||
67 | HMAC_CTX_cleanup(&ctx); | ||
68 | #else | ||
69 | + HMAC_CTX *ctx; | ||
70 | + ctx = HMAC_CTX_new(); | ||
71 | + HMAC_Init_ex(ctx, key, HMAC_SHA1_KEY_SIZE, evp_md, NULL); | ||
72 | + | ||
73 | + HMAC_Update(ctx, (uint8_t *)coa, sizeof(*coa)); | ||
74 | + HMAC_Update(ctx, (uint8_t *)cn, sizeof(*coa)); | ||
75 | + for (i = 0; i < iovlen; i++) { | ||
76 | + HMAC_Update(ctx, (uint8_t *)iov[i].iov_base, iov[i].iov_len); | ||
77 | + } | ||
78 | + HMAC_Final(ctx, buf, &len); | ||
79 | + HMAC_CTX_free(ctx); | ||
80 | +#endif | ||
81 | + | ||
82 | +#else | ||
83 | HMAC_SHA1_CTX ctx; | ||
84 | |||
85 | HMAC_SHA1_init(&ctx, key, HMAC_SHA1_KEY_SIZE); | ||
86 | -- | ||
87 | 2.7.4 | ||
88 | |||
diff --git a/meta-oe/recipes-connectivity/umip/files/0002-replace-PTHREAD_MUTEX_FAST_NP-with-PTHREAD_MUTEX_NOR.patch b/meta-oe/recipes-connectivity/umip/files/0002-replace-PTHREAD_MUTEX_FAST_NP-with-PTHREAD_MUTEX_NOR.patch deleted file mode 100644 index 90d12da14..000000000 --- a/meta-oe/recipes-connectivity/umip/files/0002-replace-PTHREAD_MUTEX_FAST_NP-with-PTHREAD_MUTEX_NOR.patch +++ /dev/null | |||
@@ -1,143 +0,0 @@ | |||
1 | From 19b6cf8099e1974b5fc39086fc54103b0cbc2658 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 4 Mar 2018 23:01:25 -0800 | ||
4 | Subject: [PATCH 2/2] replace PTHREAD_MUTEX_FAST_NP with PTHREAD_MUTEX_NORMAL | ||
5 | |||
6 | PTHREAD_MUTEX_FAST_NP is not available on non-posix systems | ||
7 | e.g. musl | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | src/ha.c | 2 +- | ||
14 | src/icmp6.c | 2 +- | ||
15 | src/mh.c | 2 +- | ||
16 | src/mn.c | 2 +- | ||
17 | src/movement.c | 2 +- | ||
18 | src/mpdisc_ha.c | 2 +- | ||
19 | src/mpdisc_mn.c | 2 +- | ||
20 | src/tqueue.c | 2 +- | ||
21 | src/tunnelctl.c | 2 +- | ||
22 | 9 files changed, 9 insertions(+), 9 deletions(-) | ||
23 | |||
24 | diff --git a/src/ha.c b/src/ha.c | ||
25 | index fbdcff0..b2f811e 100644 | ||
26 | --- a/src/ha.c | ||
27 | +++ b/src/ha.c | ||
28 | @@ -1246,7 +1246,7 @@ int ha_init(void) | ||
29 | { | ||
30 | pthread_mutexattr_t mattrs; | ||
31 | pthread_mutexattr_init(&mattrs); | ||
32 | - pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_FAST_NP); | ||
33 | + pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_NORMAL); | ||
34 | if (pthread_mutex_init(&bu_worker_mutex, &mattrs) || | ||
35 | pthread_cond_init(&cond, NULL)) | ||
36 | return -1; | ||
37 | diff --git a/src/icmp6.c b/src/icmp6.c | ||
38 | index 3695135..6460634 100644 | ||
39 | --- a/src/icmp6.c | ||
40 | +++ b/src/icmp6.c | ||
41 | @@ -243,7 +243,7 @@ int icmp6_init(void) | ||
42 | return -1; | ||
43 | /* create ICMP listener thread */ | ||
44 | pthread_mutexattr_init(&mattrs); | ||
45 | - pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_FAST_NP); | ||
46 | + pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_NORMAL); | ||
47 | if (pthread_mutex_init(&icmp6_sock.send_mutex, &mattrs) || | ||
48 | pthread_rwlock_init(&handler_lock, NULL) || | ||
49 | pthread_create(&icmp6_listener, NULL, icmp6_listen, NULL)) | ||
50 | diff --git a/src/mh.c b/src/mh.c | ||
51 | index 60e345e..7928f4c 100644 | ||
52 | --- a/src/mh.c | ||
53 | +++ b/src/mh.c | ||
54 | @@ -204,7 +204,7 @@ int mh_init(void) | ||
55 | return -1; | ||
56 | |||
57 | pthread_mutexattr_init(&mattrs); | ||
58 | - pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_FAST_NP); | ||
59 | + pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_NORMAL); | ||
60 | if (pthread_mutex_init(&mh_sock.send_mutex, &mattrs) || | ||
61 | pthread_rwlock_init(&handler_lock, NULL) || | ||
62 | pthread_create(&mh_listener, NULL, mh_listen, NULL)) | ||
63 | diff --git a/src/mn.c b/src/mn.c | ||
64 | index 092cfcb..8f7f448 100644 | ||
65 | --- a/src/mn.c | ||
66 | +++ b/src/mn.c | ||
67 | @@ -1478,7 +1478,7 @@ static struct home_addr_info *hai_copy(struct home_addr_info *conf_hai) | ||
68 | if (hai != NULL) { | ||
69 | pthread_mutexattr_t mattrs; | ||
70 | pthread_mutexattr_init(&mattrs); | ||
71 | - pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_FAST_NP); | ||
72 | + pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_NORMAL); | ||
73 | |||
74 | memcpy(hai, conf_hai, sizeof(struct home_addr_info)); | ||
75 | |||
76 | diff --git a/src/movement.c b/src/movement.c | ||
77 | index d985937..6400448 100644 | ||
78 | --- a/src/movement.c | ||
79 | +++ b/src/movement.c | ||
80 | @@ -2013,7 +2013,7 @@ int md_init(void) | ||
81 | int val; | ||
82 | |||
83 | pthread_mutexattr_init(&mattrs); | ||
84 | - pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_FAST_NP); | ||
85 | + pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_NORMAL); | ||
86 | if (pthread_mutex_init(&iface_lock, &mattrs)) | ||
87 | return -1; | ||
88 | |||
89 | diff --git a/src/mpdisc_ha.c b/src/mpdisc_ha.c | ||
90 | index 40ba05f..fd7a90d 100644 | ||
91 | --- a/src/mpdisc_ha.c | ||
92 | +++ b/src/mpdisc_ha.c | ||
93 | @@ -559,7 +559,7 @@ int mpd_ha_init(void) | ||
94 | { | ||
95 | pthread_mutexattr_t mattrs; | ||
96 | pthread_mutexattr_init(&mattrs); | ||
97 | - pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_FAST_NP); | ||
98 | + pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_NORMAL); | ||
99 | if (pthread_mutex_init(&mpa_lock, &mattrs) || | ||
100 | pthread_rwlock_init(&prefix_lock, NULL) || | ||
101 | hash_init(&mpa_hash, DOUBLE_ADDR, MPA_BUCKETS) < 0) | ||
102 | diff --git a/src/mpdisc_mn.c b/src/mpdisc_mn.c | ||
103 | index 4873bd6..ada02bd 100644 | ||
104 | --- a/src/mpdisc_mn.c | ||
105 | +++ b/src/mpdisc_mn.c | ||
106 | @@ -267,7 +267,7 @@ int mpd_mn_init(void) | ||
107 | { | ||
108 | pthread_mutexattr_t mattrs; | ||
109 | pthread_mutexattr_init(&mattrs); | ||
110 | - pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_FAST_NP); | ||
111 | + pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_NORMAL); | ||
112 | if (pthread_mutex_init(&mps_lock, &mattrs)) | ||
113 | return -1; | ||
114 | if (hash_init(&mps_hash, DOUBLE_ADDR, MPS_BUCKETS) < 0) | ||
115 | diff --git a/src/tqueue.c b/src/tqueue.c | ||
116 | index 2f7aa0b..9c185b8 100644 | ||
117 | --- a/src/tqueue.c | ||
118 | +++ b/src/tqueue.c | ||
119 | @@ -65,7 +65,7 @@ int taskqueue_init(void) | ||
120 | { | ||
121 | pthread_mutexattr_t mattrs; | ||
122 | pthread_mutexattr_init(&mattrs); | ||
123 | - pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_FAST_NP); | ||
124 | + pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_NORMAL); | ||
125 | if (pthread_mutex_init(&mutex, &mattrs) || | ||
126 | pthread_cond_init(&cond, NULL) || | ||
127 | pthread_create(&tq_runner, NULL, runner, NULL)) | ||
128 | diff --git a/src/tunnelctl.c b/src/tunnelctl.c | ||
129 | index 23fc20b..813b8ec 100644 | ||
130 | --- a/src/tunnelctl.c | ||
131 | +++ b/src/tunnelctl.c | ||
132 | @@ -433,7 +433,7 @@ int tunnelctl_init(void) | ||
133 | return -1; | ||
134 | |||
135 | pthread_mutexattr_init(&mattrs); | ||
136 | - pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_FAST_NP); | ||
137 | + pthread_mutexattr_settype(&mattrs, PTHREAD_MUTEX_NORMAL); | ||
138 | if (pthread_mutex_init(&tnl_lock, &mattrs)) | ||
139 | return -1; | ||
140 | |||
141 | -- | ||
142 | 2.16.2 | ||
143 | |||
diff --git a/meta-oe/recipes-connectivity/umip/files/add-dependency-to-support-parallel-compilation.patch b/meta-oe/recipes-connectivity/umip/files/add-dependency-to-support-parallel-compilation.patch deleted file mode 100644 index dbf008264..000000000 --- a/meta-oe/recipes-connectivity/umip/files/add-dependency-to-support-parallel-compilation.patch +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | When "make -j10", the compilation will fail, | ||
2 | because scan.c has included gram.h, but gram.h was produced | ||
3 | after scan.c was compiled | ||
4 | |||
5 | So add this dependency to ensure that gram.h is produced | ||
6 | before scan.c is produced. | ||
7 | |||
8 | Upstream-Status: Inappropriate [upstream is not active] | ||
9 | |||
10 | Signed-off-by: Roy.Li <RongQing.Li@windriver.com> | ||
11 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
12 | --- | ||
13 | src/Makefile.am | 2 ++ | ||
14 | 1 file changed, 2 insertions(+) | ||
15 | |||
16 | --- a/src/Makefile.am | ||
17 | +++ b/src/Makefile.am | ||
18 | @@ -81,3 +81,5 @@ CLEANFILES = gram.c gram.h \ | ||
19 | |||
20 | DISTCLEANFILES = $(BUILT_SOURCES) | ||
21 | MAINTAINERCLEANFILES = Makefile.in | ||
22 | + | ||
23 | +scan.c: gram.h | ||
diff --git a/meta-oe/recipes-connectivity/umip/files/mip6d b/meta-oe/recipes-connectivity/umip/files/mip6d deleted file mode 100755 index ebd70a6cc..000000000 --- a/meta-oe/recipes-connectivity/umip/files/mip6d +++ /dev/null | |||
@@ -1,112 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # mip6d Start script for the Mobile IPv6 daemon | ||
4 | # | ||
5 | # chkconfig: - 55 25 | ||
6 | # description: The mobile IPv6 daemon allows nodes to remain \ | ||
7 | # reachable while moving around in the IPv6 Internet. | ||
8 | # processname: mip6d | ||
9 | # config: /etc/mip6d.conf | ||
10 | # config: /etc/sysconfig/mip6d | ||
11 | # | ||
12 | ### BEGIN INIT INFO | ||
13 | # Provides: mipv6-daemon | ||
14 | # Required-Start: $local_fs $remote_fs $network $named | ||
15 | # Required-Stop: $local_fs $remote_fs $network | ||
16 | # Should-Start: $syslog | ||
17 | # Should-Stop: $network $syslog | ||
18 | # Default-Start: | ||
19 | # Default-Stop: 0 1 6 | ||
20 | # Short-Description: Start and stop Mobile IPV6 daemon | ||
21 | # Description: The mobile IPv6 daemon allows nodes to remain | ||
22 | # reachable while moving around in the IPv6 Internet. | ||
23 | ### END INIT INFO | ||
24 | |||
25 | # Source function library. | ||
26 | . /etc/init.d/functions | ||
27 | |||
28 | if [ -f /etc/sysconfig/mip6d ]; then | ||
29 | . /etc/sysconfig/mip6d | ||
30 | fi | ||
31 | |||
32 | mip6d=/usr/sbin/mip6d | ||
33 | prog="mip6d" | ||
34 | lockfile=/var/lock/subsys/$prog | ||
35 | |||
36 | start() { | ||
37 | [ -x $mip6d ] || exit 5 | ||
38 | echo -n $"Starting $prog: " | ||
39 | start-stop-daemon -S -x ${mip6d} && success || failure | ||
40 | retval=$? | ||
41 | echo | ||
42 | [ $retval -eq 0 ] && touch ${lockfile} | ||
43 | return $retval | ||
44 | } | ||
45 | |||
46 | stop() { | ||
47 | echo -n $"Stopping $prog: " | ||
48 | start-stop-daemon -K -x $mip6d | ||
49 | retval=$? | ||
50 | echo | ||
51 | [ $retval -eq 0 ] && rm -f ${lockfile} | ||
52 | return $retval | ||
53 | } | ||
54 | |||
55 | restart() { | ||
56 | stop | ||
57 | start | ||
58 | } | ||
59 | |||
60 | reload() | ||
61 | { | ||
62 | echo -n $"Reloading $prog configuration: " | ||
63 | killproc $mip6d -HUP | ||
64 | retval=$? | ||
65 | echo | ||
66 | return $retval | ||
67 | } | ||
68 | |||
69 | force_reload() { | ||
70 | restart | ||
71 | } | ||
72 | |||
73 | rh_status() { | ||
74 | status $prog | ||
75 | } | ||
76 | |||
77 | rh_status_q() { | ||
78 | rh_status > /dev/null 2>&1 | ||
79 | } | ||
80 | |||
81 | case "$1" in | ||
82 | start) | ||
83 | rh_status_q && exit 0 | ||
84 | $1 | ||
85 | ;; | ||
86 | stop) | ||
87 | rh_status_q || exit 0 | ||
88 | $1 | ||
89 | ;; | ||
90 | restart) | ||
91 | $1 | ||
92 | ;; | ||
93 | reload) | ||
94 | rh_status_q || exit 7 | ||
95 | $1 | ||
96 | ;; | ||
97 | force-reload) | ||
98 | force_reload | ||
99 | ;; | ||
100 | status) | ||
101 | rh_status | ||
102 | ;; | ||
103 | condrestart|try-restart) | ||
104 | rh_status_q || exit 0 | ||
105 | restart | ||
106 | ;; | ||
107 | *) | ||
108 | echo $"Usage: $prog {start|stop|status|restart|condrestart|try-restart|reload|force-reload}" | ||
109 | exit 2 | ||
110 | esac | ||
111 | |||
112 | exit $? | ||
diff --git a/meta-oe/recipes-connectivity/umip/files/mip6d.service b/meta-oe/recipes-connectivity/umip/files/mip6d.service deleted file mode 100644 index 2b5a5b9f1..000000000 --- a/meta-oe/recipes-connectivity/umip/files/mip6d.service +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | [Unit] | ||
2 | Description=MIPL Mobile IPv6 | ||
3 | After=network.target | ||
4 | |||
5 | [Service] | ||
6 | EnvironmentFile=-@SYSCONFDIR@/sysconfig/mip6d | ||
7 | ExecStart=@SBINDIR@/mip6d $ARGS | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=multi-user.target | ||