1 |
commit: 0e7ab43cc8a026ab88134ff98d5f4c634289f557 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 2 22:42:24 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 2 22:42:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e7ab43c |
7 |
|
8 |
sys-libs/uclibc-ng: version bump to 1.0.16 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
sys-libs/uclibc-ng/Manifest | 1 + |
13 |
sys-libs/uclibc-ng/uclibc-ng-1.0.16.ebuild | 406 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 407 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/uclibc-ng/Manifest b/sys-libs/uclibc-ng/Manifest |
17 |
index 301a419..305ecc2 100644 |
18 |
--- a/sys-libs/uclibc-ng/Manifest |
19 |
+++ b/sys-libs/uclibc-ng/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST uClibc-ng-1.0.14.tar.bz2 2859522 SHA256 5e3ed3c217786b238e7e356fae05c75a158d1852e72ddea954787bdcf4d63dfa SHA512 293b9260ca9a62170746e441de161ebfedb171050f168db0131fa1aec1819477ff792204525747aec82c7f473b2f48eb93aedabcd768814ac207b28032112366 WHIRLPOOL 93dce8443c3b6d0b4a616de6084cf5169d24a55e0cf9445d90d24ea66dc51902f1612371747171967431ad30a8129fa3b22830d55d746e013dc2929a0f4d81eb |
22 |
DIST uClibc-ng-1.0.15.tar.bz2 2765526 SHA256 89a91aa18909ffb27407cd6f56dfd3ab504f0c415e42410870290b5dc45a1cd9 SHA512 a4f7520fad9b1927d8ca738410b213514c3151822d5c01474ffc71e4cf4e60815bcb3a5fb98f141cf615d0fe57a7f1d3d0d2b1fd217ad5eaf8835d41ea686dc0 WHIRLPOOL 88f481cbac54844c9620de916a22e57dfb15ade01b223712ac679d4224807bdfd47ae4e157a1672e33d38beda618ae970605861d6e18c4a312720eca2e608c93 |
23 |
+DIST uClibc-ng-1.0.16.tar.bz2 2769238 SHA256 f0ded5cb1ff7aac670ca9df931fc820648d91b27085a3efecc1b7f06d65f57f6 SHA512 05110f0b6651862f16b01d1b45d59258b93686a7635815f9e050ab6b8f0eb14581782c95f305649d62aa80e78060865620a5306a657ea7e9ac396c68d61347cb WHIRLPOOL d79830b46d4bcb2f19917da936a35443da95728c25a050e5a313f6a374669be8c29d5df12a6e9ac5efc65416a0206672a70c7b6d75cb3fdc4017220e32222bf3 |
24 |
|
25 |
diff --git a/sys-libs/uclibc-ng/uclibc-ng-1.0.16.ebuild b/sys-libs/uclibc-ng/uclibc-ng-1.0.16.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..e99f8d7 |
28 |
--- /dev/null |
29 |
+++ b/sys-libs/uclibc-ng/uclibc-ng-1.0.16.ebuild |
30 |
@@ -0,0 +1,406 @@ |
31 |
+# Copyright 1999-2016 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI="6" |
36 |
+ |
37 |
+inherit flag-o-matic multilib savedconfig toolchain-funcs versionator |
38 |
+ |
39 |
+if [[ ${PV} == "9999" ]] ; then |
40 |
+ EGIT_REPO_URI="git://uclibc-ng.org/git/uclibc-ng" |
41 |
+ inherit git-r3 |
42 |
+ MY_P=uclibc-ng-${PV} |
43 |
+else |
44 |
+ MY_P=uClibc-ng-${PV} |
45 |
+fi |
46 |
+ |
47 |
+DESCRIPTION="C library for developing embedded Linux systems" |
48 |
+HOMEPAGE="http://www.uclibc-ng.org/" |
49 |
+if [[ ${PV} != "9999" ]] ; then |
50 |
+ PATCH_VER="" |
51 |
+ SRC_URI="http://downloads.uclibc-ng.org/releases/${PV}/${MY_P}.tar.bz2" |
52 |
+ KEYWORDS="-* ~amd64 ~arm ~mips ~ppc ~x86" |
53 |
+fi |
54 |
+ |
55 |
+LICENSE="LGPL-2" |
56 |
+SLOT="0" |
57 |
+IUSE="debug hardened iconv ipv6 rpc crosscompile_opts_headers-only" |
58 |
+RESTRICT="strip" |
59 |
+ |
60 |
+# 1) We can't upgrade from uclibc to uclibc-ng via a soft blocker since portage |
61 |
+# will delete the ld.so sym link prematurely and break the system. So we |
62 |
+# will hard block and give manual migration instructions. |
63 |
+# 2) Currently uclibc and uclibc-ng's iconv are in bad shape. We've been using |
64 |
+# the breakout library. The disadvantage here is that we have to sprinkle |
65 |
+# LDFAGS=-liconv on build systems that need to link against libiconv. |
66 |
+RDEPEND=" |
67 |
+ !!sys-libs/uclibc |
68 |
+ iconv? ( dev-libs/libiconv )" |
69 |
+ |
70 |
+S=${WORKDIR}/${MY_P} |
71 |
+ |
72 |
+export CBUILD=${CBUILD:-${CHOST}} |
73 |
+export CTARGET=${CTARGET:-${CHOST}} |
74 |
+if [[ ${CHOST} == ${CTARGET} ]] ; then |
75 |
+ if [[ ${CATEGORY} == cross-* ]] ; then |
76 |
+ export CTARGET=${CATEGORY#cross-} |
77 |
+ fi |
78 |
+fi |
79 |
+ |
80 |
+is_crosscompile() { |
81 |
+ [[ ${CHOST} != ${CTARGET} ]] |
82 |
+} |
83 |
+ |
84 |
+alt_build_kprefix() { |
85 |
+ if [[ ${CBUILD} == ${CHOST} && ${CHOST} == ${CTARGET} ]] ; then |
86 |
+ echo /usr/include |
87 |
+ else |
88 |
+ echo /usr/${CTARGET}/usr/include |
89 |
+ fi |
90 |
+} |
91 |
+ |
92 |
+just_headers() { |
93 |
+ use crosscompile_opts_headers-only && is_crosscompile |
94 |
+} |
95 |
+ |
96 |
+uclibc_endian() { |
97 |
+ # XXX: this wont work for a toolchain which is bi-endian, but we |
98 |
+ # dont have any such thing at the moment, so not a big deal |
99 |
+ touch "${T}"/endian.s |
100 |
+ $(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o |
101 |
+ case $(file "${T}"/endian.o) in |
102 |
+ *" MSB "*) echo "BIG";; |
103 |
+ *" LSB "*) echo "LITTLE";; |
104 |
+ *) echo "NFC";; |
105 |
+ esac |
106 |
+ rm -f "${T}"/endian.{s,o} |
107 |
+} |
108 |
+ |
109 |
+kconfig_q_opt() { |
110 |
+ local flag=$1; shift |
111 |
+ case ${flag} in |
112 |
+ y|n) ;; |
113 |
+ *) flag=$(usex ${flag} y n) ;; |
114 |
+ esac |
115 |
+ |
116 |
+ local var="defs_${flag}" |
117 |
+ eval "${var}+=( $* )" |
118 |
+} |
119 |
+ |
120 |
+get_opt() { |
121 |
+ ( |
122 |
+ unset ${1} |
123 |
+ . ${2:-"${S}"/.config} |
124 |
+ echo ${!1} |
125 |
+ ) |
126 |
+} |
127 |
+ |
128 |
+make_oldconfig() { |
129 |
+ yes "" 2>/dev/null | emake -s oldconfig >/dev/null |
130 |
+} |
131 |
+ |
132 |
+make_config() { |
133 |
+ restore_config .config |
134 |
+ if [ -f .config ]; then |
135 |
+ make_oldconfig |
136 |
+ return 0 |
137 |
+ else |
138 |
+ ewarn "Could not locate user configfile, so we will save a default one" |
139 |
+ fi |
140 |
+ |
141 |
+ emake ARCH=$1 defconfig >/dev/null |
142 |
+ |
143 |
+ local defs_{y,n} |
144 |
+ |
145 |
+ # These are forced off |
146 |
+ defs_n=( |
147 |
+ DOASSERTS |
148 |
+ DODEBUG_PT |
149 |
+ HAS_NO_THREADS |
150 |
+ PROPOLICE_BLOCK_ABRT |
151 |
+ SSP_QUICK_CANARY |
152 |
+ SUPPORT_LD_DEBUG_EARLY |
153 |
+ UCLIBC_HAS_CTYPE_UNSAFE |
154 |
+ UCLIBC_HAS_LOCALE |
155 |
+ UCLIBC_HAS_SSP_COMPAT |
156 |
+ ) |
157 |
+ |
158 |
+ # These are forced on |
159 |
+ defs_y=( |
160 |
+ COMPAT_ATEXIT |
161 |
+ DO_C99_MATH |
162 |
+ DO_XSI_MATH |
163 |
+ FORCE_SHAREABLE_TEXT_SEGMENTS |
164 |
+ LDSO_GNU_HASH_SUPPORT |
165 |
+ LDSO_PRELINK_SUPPORT |
166 |
+ LDSO_PRELOAD_FILE_SUPPORT |
167 |
+ LDSO_RUNPATH_OF_EXECUTABLE |
168 |
+ LDSO_STANDALONE_SUPPORT |
169 |
+ MALLOC_GLIBC_COMPAT |
170 |
+ PROPOLICE_BLOCK_SEGV |
171 |
+ PTHREADS_DEBUG_SUPPORT |
172 |
+ UCLIBC_HAS_ARC4RANDOM |
173 |
+ UCLIBC_HAS_BACKTRACE |
174 |
+ UCLIBC_HAS_BSD_RES_CLOSE |
175 |
+ UCLIBC_HAS_CONTEXT_FUNCS |
176 |
+ UCLIBC_HAS_CTYPE_CHECKED |
177 |
+ UCLIBC_HAS_EXTRA_COMPAT_RES_STATE |
178 |
+ UCLIBC_HAS_FENV |
179 |
+ UCLIBC_HAS_FOPEN_CLOSEEXEC_MODE |
180 |
+ UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE |
181 |
+ UCLIBC_HAS_FOPEN_LARGEFILE_MODE |
182 |
+ UCLIBC_HAS_FTS |
183 |
+ UCLIBC_HAS_FTW |
184 |
+ UCLIBC_HAS_GETPT |
185 |
+ UCLIBC_HAS_GLIBC_CUSTOM_PRINTF |
186 |
+ UCLIBC_HAS_GLIBC_CUSTOM_STREAMS |
187 |
+ UCLIBC_HAS_GNU_GLOB |
188 |
+ UCLIBC_HAS_HEXADECIMAL_FLOATS |
189 |
+ UCLIBC_HAS_LIBNSL_STUB |
190 |
+ UCLIBC_HAS_LIBRESOLV_STUB |
191 |
+ UCLIBC_HAS_LIBUTIL |
192 |
+ UCLIBC_HAS_NFTW |
193 |
+ UCLIBC_HAS_OBSOLETE_BSD_SIGNAL |
194 |
+ UCLIBC_HAS_OBSTACK |
195 |
+ UCLIBC_HAS_PRINTF_M_SPEC |
196 |
+ UCLIBC_HAS_PROGRAM_INVOCATION_NAME |
197 |
+ UCLIBC_HAS_RESOLVER_SUPPORT |
198 |
+ UCLIBC_HAS_SHA256_CRYPT_IMPL |
199 |
+ UCLIBC_HAS_SHA512_CRYPT_IMPL |
200 |
+ UCLIBC_HAS_SSP |
201 |
+ UCLIBC_HAS_STUBS |
202 |
+ UCLIBC_HAS_SYS_ERRLIST |
203 |
+ UCLIBC_HAS_SYS_SIGLIST |
204 |
+ UCLIBC_HAS_THREADS_NATIVE |
205 |
+ UCLIBC_HAS_TZ_FILE_READ_MANY |
206 |
+ UCLIBC_HAS_UTMP |
207 |
+ UCLIBC_HAS_UTMPX |
208 |
+ UCLIBC_HAS_WCHAR |
209 |
+ UCLIBC_HAS_WORDEXP |
210 |
+ UCLIBC_NTP_LEGACY |
211 |
+ UCLIBC_SUPPORT_AI_ADDRCONFIG |
212 |
+ UCLIBC_SUSV2_LEGACY |
213 |
+ UCLIBC_SUSV3_LEGACY |
214 |
+ UCLIBC_SUSV3_LEGACY_MACROS |
215 |
+ UCLIBC_SUSV4_LEGACY |
216 |
+ UCLIBC_USE_NETLINK |
217 |
+ ) |
218 |
+ |
219 |
+ sed -i -e '/ARCH_.*_ENDIAN/d' .config |
220 |
+ kconfig_q_opt y "ARCH_WANTS_$(uclibc_endian)_ENDIAN" |
221 |
+ |
222 |
+ kconfig_q_opt debug DODEBUG |
223 |
+ kconfig_q_opt debug SUPPORT_LD_DEBUG |
224 |
+ kconfig_q_opt debug UCLIBC_HAS_PROFILING |
225 |
+ |
226 |
+ kconfig_q_opt ipv6 UCLIBC_HAS_IPV6 |
227 |
+ |
228 |
+ kconfig_q_opt rpc UCLIBC_HAS_RPC |
229 |
+ kconfig_q_opt rpc UCLIBC_HAS_FULL_RPC |
230 |
+ kconfig_q_opt rpc UCLIBC_HAS_REENTRANT_RPC |
231 |
+ |
232 |
+ kconfig_q_opt hardened UCLIBC_BUILD_NOEXECSTACK |
233 |
+ kconfig_q_opt hardened UCLIBC_BUILD_NOW |
234 |
+ kconfig_q_opt hardened UCLIBC_BUILD_PIE |
235 |
+ kconfig_q_opt hardened UCLIBC_BUILD_RELRO |
236 |
+ kconfig_q_opt hardened UCLIBC_BUILD_SSP |
237 |
+ |
238 |
+ local count def |
239 |
+ for count in 1 2 ; do |
240 |
+ # Run twice as some config opts depend on others being enabled first. |
241 |
+ for def in ${defs_y[@]} ; do |
242 |
+ sed -i -e "s|.*\<${def}\>.*set|${def}=y|g" .config |
243 |
+ done |
244 |
+ for def in ${defs_n[@]} ; do |
245 |
+ sed -i -e "s|${def}=y|# ${def} is not set|g" .config |
246 |
+ done |
247 |
+ make_oldconfig |
248 |
+ done |
249 |
+ |
250 |
+ einfo "Enabled options:" |
251 |
+ for def in ${defs_y[@]} ; do |
252 |
+ einfo " " $(grep "^${def}=y" .config || echo "could not find ${def}") |
253 |
+ done |
254 |
+ einfo "Disabled options:" |
255 |
+ for def in ${defs_n[@]} ; do |
256 |
+ einfo " " $(grep "^# ${def} is not set" .config || echo "could not find ${def}") |
257 |
+ done |
258 |
+ |
259 |
+ # setup build and run paths |
260 |
+ sed -i \ |
261 |
+ -e "/^CROSS_COMPILER_PREFIX/s|=.*|=\"${CTARGET}-\"|" \ |
262 |
+ -e "/^KERNEL_HEADERS/s|=.*|=\"$(alt_build_kprefix)\"|" \ |
263 |
+ -e "/^SHARED_LIB_LOADER_PREFIX/s|=.*|=\"/$(get_libdir)\"|" \ |
264 |
+ -e "/^DEVEL_PREFIX/s|=.*|=\"/usr\"|" \ |
265 |
+ -e "/^RUNTIME_PREFIX/s|=.*|=\"/\"|" \ |
266 |
+ -e "/^UCLIBC_EXTRA_CFLAGS/s|=.*|=\"${UCLIBC_EXTRA_CFLAGS}\"|" \ |
267 |
+ .config || die |
268 |
+ |
269 |
+ make_oldconfig |
270 |
+} |
271 |
+ |
272 |
+pkg_setup() { |
273 |
+ # Make sure our CHOST is a uclibc toolchain for native compiling |
274 |
+ if [[ ${CHOST} == ${CTARGET} ]]; then |
275 |
+ case ${CHOST} in |
276 |
+ *-uclinux*|*-uclibc*) ;; |
277 |
+ *) die "Use sys-devel/crossdev to build a uclibc toolchain" ;; |
278 |
+ esac |
279 |
+ fi |
280 |
+ |
281 |
+ # uClibc-ng doesn't carry old Linux threads, and since we force |
282 |
+ # threading our only choice is NPTL which requires i486 and later. |
283 |
+ [[ ${CTARGET} == i386* ]] && die "i386 can't support Native Posix Threads (NPTL)." |
284 |
+} |
285 |
+ |
286 |
+src_prepare() { |
287 |
+ local version subversion extraversion |
288 |
+ |
289 |
+ # uclibc-ng tries to create a two sym link with ld.so, |
290 |
+ # ld-uClibc.so.{0,MAJOR_VERSION} -> ld-uClibc-<version>.so |
291 |
+ # where MAJOR_VERSION != 0 indicates the ABI verison. |
292 |
+ # We want to get rid of this and just have ABI = 0. |
293 |
+ eapply "${FILESDIR}"/uclibc-compat.patch |
294 |
+ |
295 |
+ # We need to change the major.minor.sublevel of uclibc-ng. |
296 |
+ # Upstream sets MAJOR_VERSION = 1 which breaks runtime linking. |
297 |
+ # If we really want the ABI bump, we'll have to hack the gcc |
298 |
+ # spec file and change the '*link:' rule. |
299 |
+ version=( $(get_version_components) ) |
300 |
+ if [[ -z ${version[1]} ]]; then |
301 |
+ subversion=0 |
302 |
+ extraversion=0 |
303 |
+ else |
304 |
+ subversion=${version[1]} |
305 |
+ if [[ -z ${version[2]} ]]; then |
306 |
+ extraversion=0 |
307 |
+ else |
308 |
+ extraversion=.${version[2]} |
309 |
+ fi |
310 |
+ fi |
311 |
+ |
312 |
+ sed -i \ |
313 |
+ -e "/^MAJOR_VERSION/s|:=.*|:= 0|" \ |
314 |
+ -e "/^MINOR_VERSION/s|:=.*|:= ${version[0]}|" \ |
315 |
+ -e "/^SUBLEVEL/s|:=.*|:= ${subversion}|" \ |
316 |
+ -e "/^EXTRAVERSION/s|:=.*|:= ${extraversion}|" \ |
317 |
+ Rules.mak || die |
318 |
+ |
319 |
+ eapply_user |
320 |
+} |
321 |
+ |
322 |
+src_configure() { |
323 |
+ # Map our toolchain arch name to the name expected by uClibc-ng. |
324 |
+ local target=$(tc-arch) |
325 |
+ case ${target} in |
326 |
+ amd64) target="x86_64";; |
327 |
+ arm) target="arm";; |
328 |
+ mips) target="mips";; |
329 |
+ ppc) target="powerpc";; |
330 |
+ x86) target="i386";; |
331 |
+ esac |
332 |
+ |
333 |
+ # Do arch specific configuration by changing the defaults in |
334 |
+ # extra/Configs/Config.<arch>. If these are not overridden |
335 |
+ # by an save .config, they will be selected by default. |
336 |
+ |
337 |
+ # For i386, i486, i586 and i686 |
338 |
+ local cpu |
339 |
+ if [[ ${target} == "i386" ]]; then |
340 |
+ [[ ${CTARGET} == i[456]86* ]] && cpu="${CTARGET:1:1}86" |
341 |
+ sed -i -e "s|default CONFIG_686|default CONFIG_${cpu:-486}|" \ |
342 |
+ extra/Configs/Config.i385 || die |
343 |
+ fi |
344 |
+ |
345 |
+ # For arm |
346 |
+ if [[ ${target} == "arm" ]]; then |
347 |
+ sed -i -e '/Build for EABI/a \\tdefault y' extra/Configs/Config.arm |
348 |
+ fi |
349 |
+ |
350 |
+ # For mips |
351 |
+ if [[ ${target} == "mips" ]]; then |
352 |
+ sed -i -e "s|default CONFIG_MIPS_O32_ABI|CONFIG_MIPS_${ABI^[on]}_ABI|" \ |
353 |
+ extra/Configs/Config.mips || die |
354 |
+ fi |
355 |
+ |
356 |
+ # We set HOSTCC to the proper tuple rather than just 'gcc' |
357 |
+ sed -i -e "s|^HOSTCC.*=.*|HOSTCC=$(tc-getBUILD_CC)|" Rules.mak |
358 |
+ |
359 |
+ make_config ${target} |
360 |
+ |
361 |
+ einfo |
362 |
+ einfo "Runtime Prefix: /" |
363 |
+ einfo "Devel Prefix: /usr" |
364 |
+ einfo "Kernel Prefix: $(alt_build_kprefix)" |
365 |
+ einfo "CBUILD: ${CBUILD}" |
366 |
+ einfo "CHOST: ${CHOST}" |
367 |
+ einfo "CTARGET: ${CTARGET}" |
368 |
+ einfo "ABI: ${ABI}" |
369 |
+ einfo "ENDIAN: $(uclibc_endian)" |
370 |
+ einfo |
371 |
+} |
372 |
+ |
373 |
+src_compile() { |
374 |
+ emake headers |
375 |
+ just_headers && return 0 |
376 |
+ |
377 |
+ emake |
378 |
+ if is_crosscompile ; then |
379 |
+ emake -C utils hostutils |
380 |
+ else |
381 |
+ emake utils |
382 |
+ fi |
383 |
+} |
384 |
+ |
385 |
+src_test() { |
386 |
+ is_crosscompile && return 0 |
387 |
+ |
388 |
+ # assert test fails on pax/grsec enabled kernels |
389 |
+ # normal vfork test fails in sandbox (both glibc/uclibc) |
390 |
+ emake UCLIBC_ONLY=1 check |
391 |
+} |
392 |
+ |
393 |
+src_install() { |
394 |
+ local sysroot=${D} |
395 |
+ is_crosscompile && sysroot+="/usr/${CTARGET}" |
396 |
+ |
397 |
+ local target="install" |
398 |
+ just_headers && target="install_headers" |
399 |
+ emake DESTDIR="${sysroot}" ${target} |
400 |
+ |
401 |
+ save_config .config |
402 |
+ |
403 |
+ # remove files coming from kernel-headers |
404 |
+ rm -rf "${sysroot}"/usr/include/{linux,asm*} |
405 |
+ |
406 |
+ # Make sure we install the sys-include symlink so that when |
407 |
+ # we build a 2nd stage cross-compiler, gcc finds the target |
408 |
+ # system headers correctly. See gcc/doc/gccinstall.info |
409 |
+ if is_crosscompile ; then |
410 |
+ dosym usr/include /usr/${CTARGET}/sys-include |
411 |
+ if ! just_headers && [[ -n $(get_opt HAVE_SHARED) ]] ; then |
412 |
+ newbin utils/ldconfig.host ${CTARGET}-ldconfig |
413 |
+ newbin utils/ldd.host ${CTARGET}-ldd |
414 |
+ fi |
415 |
+ return 0 |
416 |
+ fi |
417 |
+ |
418 |
+ emake DESTDIR="${D}" install_utils |
419 |
+ dobin extra/scripts/getent |
420 |
+ dodoc README docs/*.txt |
421 |
+} |
422 |
+ |
423 |
+pkg_postinst() { |
424 |
+ is_crosscompile && return 0 |
425 |
+ |
426 |
+ if [ ! -e "${ROOT}"/etc/TZ ] ; then |
427 |
+ ewarn "Please remember to set your timezone in /etc/TZ" |
428 |
+ mkdir -p "${ROOT}"/etc |
429 |
+ echo "UTC" > "${ROOT}"/etc/TZ |
430 |
+ fi |
431 |
+ [ "${ROOT}" != "/" ] && return 0 |
432 |
+ # update cache before reloading init |
433 |
+ ldconfig |
434 |
+ # reload init ... |
435 |
+ /sbin/telinit U 2>/dev/null |
436 |
+} |