1 |
2008. október 6. dátummal George Hron ezt írta: |
2 |
> Hat nem tudom, ez igy nem tunik a legjobb otletnek. Valoszinu, hogy |
3 |
> kiolvassa a symlinket. Szerintem a /var/cache -t szedd le a /var/mnt alol. |
4 |
> Masik lehetoseg a /var/mnt helyett a /var-ba mountolni, a szerverek cuccait |
5 |
> meg szepen eltenni onnan, mondjuk a /srv konyvtarba (en ezt szoktam eleve |
6 |
> csinalni). |
7 |
|
8 |
|
9 |
Igen, ez eddig vilagos, csak ez esetben az erdekelne, hogy vajon miert is |
10 |
dontott igy barmely fejleszto (merthogy az elmult par ev gentoolkitjei |
11 |
bekeben megfertek ezzel a megoldassal). |
12 |
|
13 |
Tovabba, ennyi erovel akar legkozelebb az lehet a problemaja, hogy teszem azt |
14 |
a /var vagy /var/cache nem a /-al azonos particion helyezkedik el, tagabb |
15 |
ertelemben pedig barmi mas is lehet kotozkodni valoja (mondjuk tul nagy a |
16 |
particio, vagy raid-ban van, vagy akarmi), hiszen miert is ne? |
17 |
|
18 |
Olyba tunik nekem a debug kimenetbol, hogy |
19 |
|
20 |
local uid=root |
21 |
+ [[ root == \r\o\o\t ]] |
22 |
+ local tmp_target=/var/cache/revdep-rebuild |
23 |
+ verify_tmpdir /var/cache/revdep-rebuild root |
24 |
+ umask 007 |
25 |
|
26 |
a tmp_target nevu, userhez kotott kornyezeti valtozot olvassa ki valahonnan |
27 |
(mar ti. feltetelezve, hogy igazam van). Ezt vajon felul tudnam biralni a |
28 |
bash env-ben, vagy barhol mashol? |
29 |
|
30 |
|
31 |
vagy proba-cseresznye? :) |
32 |
|
33 |
vt |
34 |
|
35 |
|
36 |
> |
37 |
> 2008/10/4 cjvt <cjvt@××××××××.hu> |
38 |
> |
39 |
> > Üdv, |
40 |
> > |
41 |
> > elöljáróban: |
42 |
> > |
43 |
> > az érintett rendszeren a következő symlinkek léteznek (mármint adekvát) a |
44 |
> > /var |
45 |
> > könyvtár alatt: |
46 |
> > |
47 |
> > lrwxrwxrwx 1 amavis amavis 15 jún 11 14.26 amavis -> /var/mnt/amavis |
48 |
> > lrwxrwxrwx 1 root root 14 jún 11 14.26 cache -> /var/mnt/cache |
49 |
> > lrwxrwxrwx 1 root root 12 jún 11 14.26 tmp -> /var/mnt/tmp |
50 |
> > |
51 |
> > A /var/mnt tartalma |
52 |
> > |
53 |
> > # ls -la /var/mnt/ |
54 |
> > összesen 20 |
55 |
> > drwxr-xr-x 5 root root 4096 jún 11 14.32 . |
56 |
> > drwxr-xr-x 14 root root 4096 jún 11 14.26 .. |
57 |
> > drwxr-xr-x 8 amavis amavis 4096 szept 28 15.34 amavis |
58 |
> > drwxr-xr-x 9 root root 4096 okt 4 09.56 cache |
59 |
> > drwxrwxrwt 8 root root 4096 okt 4 10.27 tmp |
60 |
> > |
61 |
> > A /var könyvtár a /-el megegyező, a /var/mnt egy másik partíció. |
62 |
> > |
63 |
> > Ezzel eleddig semmiféle probléma nem akadt. |
64 |
> > |
65 |
> > A mai napom azonban frissítettem |
66 |
> > |
67 |
> > app-portage/gentoolkit-0.2.4.2 -re |
68 |
> > |
69 |
> > azota a revdep-rebuild a következő hibát dobja: |
70 |
> > |
71 |
> > # revdep-rebuild |
72 |
> > * Configuring search environment for revdep-rebuild |
73 |
> > * Working directory expected to be /var/cache/revdep-rebuild, but it |
74 |
> > is /var/mnt/cache/revdep-rebuild |
75 |
> > |
76 |
> > Van vkinek ötlete, hogy miért, és hogyan is lehetne lebeszélni a |
77 |
> > hibaüzenetről? |
78 |
> > |
79 |
> > |
80 |
> > vt |
81 |
> > |
82 |
> > |
83 |
> > a revdep-rebuild -d kimenete (a közvetlenül erintett rész a legvégén): |
84 |
> > |
85 |
> > + getopts :CdehikL:loPpqu:vX OPT |
86 |
> > + unset args |
87 |
> > + [[ -n '' ]] |
88 |
> > + setup_color |
89 |
> > portageq envvar NOCOLOR |
90 |
> > ++ portageq envvar NOCOLOR |
91 |
> > + export NOCOLOR= |
92 |
> > + NOCOLOR= |
93 |
> > + [[ '' = yes ]] |
94 |
> > + [[ '' = true ]] |
95 |
> > + . /etc/init.d/functions.sh |
96 |
> > # Copyright 1999-2007 Gentoo Foundation |
97 |
> > # Distributed under the terms of the GNU General Public License v2 |
98 |
> > |
99 |
> > RC_GOT_FUNCTIONS="yes" |
100 |
> > ++ RC_GOT_FUNCTIONS=yes |
101 |
> > |
102 |
> > # Override defaults with user settings ... |
103 |
> > [[ -f /etc/conf.d/rc ]] && source /etc/conf.d/rc |
104 |
> > ++ [[ -f /etc/conf.d/rc ]] |
105 |
> > ++ source /etc/conf.d/rc |
106 |
> > # /etc/conf.d/rc: Global config file for the Gentoo RC System |
107 |
> > |
108 |
> > # This is the number of tty's used in most of the rc-scripts (like |
109 |
> > # consolefont, numlock, etc ...) |
110 |
> > |
111 |
> > RC_TTY_NUMBER=11 |
112 |
> > +++ RC_TTY_NUMBER=11 |
113 |
> > |
114 |
> > # Set to "yes" if you want the rc system to try and start services |
115 |
> > # in parallel for a slight speed improvement. NOTE: When |
116 |
> > RC_PARALLEL_STARTUP |
117 |
> > # is enabled, init script output is replaced with simple "service foo |
118 |
> > # starting/stopping" messages so that output is not mixed up. |
119 |
> > # You can stop this from happening on the command line by passing |
120 |
> > --verbose # to the init script or by setting RC_VERBOSE="yes" below. |
121 |
> > |
122 |
> > RC_PARALLEL_STARTUP="no" |
123 |
> > +++ RC_PARALLEL_STARTUP=no |
124 |
> > |
125 |
> > # Set RC_INTERACTIVE to "yes" and you'll be able to press the I key |
126 |
> > during # boot so you can choose to start specific services. Set to "no" |
127 |
> > to disable # this feature. |
128 |
> > |
129 |
> > RC_INTERACTIVE="yes" |
130 |
> > +++ RC_INTERACTIVE=yes |
131 |
> > |
132 |
> > # Do we allow services to be hotplugged? If not, set to RC_HOTPLUG="no" |
133 |
> > # NOTE: This does not affect anything hotplug/udev related, just the |
134 |
> > # starting/stopping of the init.d service triggered by hotplug. |
135 |
> > |
136 |
> > RC_HOTPLUG="yes" |
137 |
> > +++ RC_HOTPLUG=yes |
138 |
> > |
139 |
> > # Dynamic /dev managers can trigger coldplug events which cause services |
140 |
> > to # start before we are ready for them. If this happens, we can defer |
141 |
> > these # services to start in the boot runlevel. Set RC_COLDPLUG="no" if |
142 |
> > you don't # want this. |
143 |
> > # NOTE: This also affects module coldplugging in udev-096 and higher |
144 |
> > # If you want module coldplugging but not coldplugging of services then |
145 |
> > you # can set RC_COLDPLUG="yes" and RC_PLUG_SERVICES="!*" |
146 |
> > |
147 |
> > RC_COLDPLUG="yes" |
148 |
> > +++ RC_COLDPLUG=yes |
149 |
> > |
150 |
> > # Some people want a finer grain over hotplug/coldplug. RC_PLUG_SERVICES |
151 |
> > is a |
152 |
> > # list of services that are matched in order, either allowing or not. By |
153 |
> > # default we allow services through as RC_COLDPLUG/RC_HOTPLUG has to be |
154 |
> > yes # anyway. |
155 |
> > # Example - RC_PLUG_SERVICES="net.wlan !net.*" |
156 |
> > # This allows net.wlan and any service not matching net.* to be plugged. |
157 |
> > |
158 |
> > RC_PLUG_SERVICES="" |
159 |
> > +++ RC_PLUG_SERVICES= |
160 |
> > |
161 |
> > # RC_NET_STRICT_CHECKING allows some flexibility with the 'net' service. |
162 |
> > # The following values are allowed: |
163 |
> > # none - The 'net' service is always considered up. |
164 |
> > # no - This basically means that at least one net.* service besides |
165 |
> > net.lo |
166 |
> > # must be up. This can be used by notebook users that have a |
167 |
> > wifi and |
168 |
> > # a static nic, and only wants one up at any given time to have |
169 |
> > the |
170 |
> > # 'net' service seen as up. |
171 |
> > # lo - This is the same as the 'no' option, but net.lo is also |
172 |
> > counted. # This should be useful to people that do not care |
173 |
> > about any specific |
174 |
> > # interface being up at boot. |
175 |
> > # yes - For this ALL network interfaces MUST be up for the 'net' |
176 |
> > service to |
177 |
> > # be considered up. |
178 |
> > |
179 |
> > RC_NET_STRICT_CHECKING="no" |
180 |
> > +++ RC_NET_STRICT_CHECKING=no |
181 |
> > |
182 |
> > # RC_DOWN_INTERFACE allows you to specify if RC will bring the interface |
183 |
> > # completely down when it stops. The default is yes, but there are some |
184 |
> > # instances where you may not want this to happen such as using Wake On |
185 |
> > LAN. |
186 |
> > |
187 |
> > RC_DOWN_INTERFACE="yes" |
188 |
> > +++ RC_DOWN_INTERFACE=yes |
189 |
> > |
190 |
> > # RC_VOLUME_ORDER allows you to specify, or even remove the volume setup |
191 |
> > # for various volume managers (MD, EVMS2, LVM, DM, etc). Note that they |
192 |
> > are |
193 |
> > # stopped in reverse order. |
194 |
> > |
195 |
> > RC_VOLUME_ORDER="raid evms lvm dm" |
196 |
> > +++ RC_VOLUME_ORDER='raid evms lvm dm' |
197 |
> > |
198 |
> > # RC_VERBOSE will make init scripts more verbose. Only networking scripts |
199 |
> > # really use this at this time, and this is useful for trouble shooting |
200 |
> > # any issues you may have. |
201 |
> > # This is also used to re-enable init script output for init scripts |
202 |
> > # started or stopped from the command line. |
203 |
> > |
204 |
> > RC_VERBOSE="no" |
205 |
> > +++ RC_VERBOSE=no |
206 |
> > |
207 |
> > # RC_BOOTLOG will generate a log of the boot messages shown on the |
208 |
> > console. # Useful for headless machines or debugging. You need to emerge |
209 |
> > the # app-admin/showconsole package for this to work. Note that this |
210 |
> > probably # won't work correctly with boot splash. |
211 |
> > |
212 |
> > RC_BOOTLOG="no" |
213 |
> > +++ RC_BOOTLOG=no |
214 |
> > |
215 |
> > # Set to "yes" if you want to benchmark system boot with bootchart. |
216 |
> > # You'll need to emerge the app-benchmarks/bootchart package for this to |
217 |
> > work. |
218 |
> > |
219 |
> > RC_BOOTCHART="no" |
220 |
> > +++ RC_BOOTCHART=no |
221 |
> > |
222 |
> > # RC_USE_FSTAB allows you to override the default mount options for the |
223 |
> > # standard /proc, /sys, /dev, and /dev/pts mount points. Note that this |
224 |
> > # is the new way for selecting ramfs/tmpfs/etc... for udev mounting. |
225 |
> > |
226 |
> > RC_USE_FSTAB="no" |
227 |
> > +++ RC_USE_FSTAB=no |
228 |
> > |
229 |
> > # RC_USE_CONFIG_PROFILE allows you to have different /etc/conf.d files |
230 |
> > # based on your runlevel - if a conf.d file for your profile does not |
231 |
> > exist # then we try and use the default one. |
232 |
> > # To enable runlevel selection at boot, append "softlevel=foobar" to your |
233 |
> > # kernel line to change to the foobar runlevel. Here we would search for |
234 |
> > # /etc/conf.d/<service>.foobar config files before trying to use the |
235 |
> > default |
236 |
> > # /etc/conf.d/<service>. |
237 |
> > # Note that it is only active if 'softlevel' was specified via the kernel |
238 |
> > line, |
239 |
> > # and it is intended to use for different grub/lilo entries to specify |
240 |
> > config |
241 |
> > # changes for say laptops between home and work, where you would have |
242 |
> > setup # 'work' and 'home' runlevels, with /etc/conf.d/*.<runlevel> as |
243 |
> > needed. |
244 |
> > |
245 |
> > RC_USE_CONFIG_PROFILE="yes" |
246 |
> > +++ RC_USE_CONFIG_PROFILE=yes |
247 |
> > |
248 |
> > # RC_FORCE_AUTO tries its best to prevent user interaction during the |
249 |
> > boot and |
250 |
> > # shutdown process. For example, fsck will automatically be run or |
251 |
> > volumes # remounted to create proper directory trees. This feature can |
252 |
> > be dangerous |
253 |
> > # and is meant ONLY for headless machines where getting a physical |
254 |
> > console # hooked up is a huge pita. |
255 |
> > |
256 |
> > RC_FORCE_AUTO="no" |
257 |
> > +++ RC_FORCE_AUTO=no |
258 |
> > |
259 |
> > # Use this variable to control the /dev management behavior. |
260 |
> > # auto - let the scripts figure out what's best at boot |
261 |
> > # devfs - use devfs (requires sys-fs/devfsd) |
262 |
> > # udev - use udev (requires sys-fs/udev) |
263 |
> > # static - let the user manage /dev (YOU need to create ALL device |
264 |
> > nodes) |
265 |
> > |
266 |
> > RC_DEVICES="auto" |
267 |
> > +++ RC_DEVICES=auto |
268 |
> > |
269 |
> > # UDEV OPTION: |
270 |
> > # Set to "yes" if you want to save /dev to a tarball on shutdown |
271 |
> > # and restore it on startup. This is useful if you have a lot of |
272 |
> > # custom device nodes that udev does not handle/know about. |
273 |
> > |
274 |
> > RC_DEVICE_TARBALL="no" |
275 |
> > +++ RC_DEVICE_TARBALL=no |
276 |
> > |
277 |
> > # RC_DMESG_LEVEL sets the level at which logging of messages is done to |
278 |
> > the # console. See dmesg(8) for more info. |
279 |
> > |
280 |
> > RC_DMESG_LEVEL="1" |
281 |
> > +++ RC_DMESG_LEVEL=1 |
282 |
> > |
283 |
> > |
284 |
> > |
285 |
> > |
286 |
> > |
287 |
> > # |
288 |
> > # Controlling start-stop-daemon behavior |
289 |
> > |
290 |
> > # Set to "yes" if start-stop-daemon should always retry killing the |
291 |
> > # service with sig KILL if it fails the first time. |
292 |
> > |
293 |
> > RC_RETRY_KILL="yes" |
294 |
> > +++ RC_RETRY_KILL=yes |
295 |
> > |
296 |
> > |
297 |
> > # Set the amount of seconds start-stop-daemon should wait between |
298 |
> > # retries. |
299 |
> > |
300 |
> > RC_RETRY_TIMEOUT=1 |
301 |
> > +++ RC_RETRY_TIMEOUT=1 |
302 |
> > |
303 |
> > |
304 |
> > # Set the amount of times start-stop-daemon should try to kill |
305 |
> > # a service before giving up. |
306 |
> > |
307 |
> > RC_RETRY_COUNT=5 |
308 |
> > +++ RC_RETRY_COUNT=5 |
309 |
> > |
310 |
> > |
311 |
> > # Set to "yes" if start-stop-daemon should fail if the service |
312 |
> > # is marked as started, but not actually running on stop. |
313 |
> > |
314 |
> > RC_FAIL_ON_ZOMBIE="no" |
315 |
> > +++ RC_FAIL_ON_ZOMBIE=no |
316 |
> > |
317 |
> > |
318 |
> > # Set to "yes" if start-stop-daemon should attempt to kill |
319 |
> > # any children left in the system. |
320 |
> > # Be careful with this as it really does what it was on the tin. |
321 |
> > # fex, if you're in an ssh process and you restart a service on which ssh |
322 |
> > # depends then your terminal will be killed also. |
323 |
> > |
324 |
> > RC_KILL_CHILDREN="no" |
325 |
> > +++ RC_KILL_CHILDREN=no |
326 |
> > |
327 |
> > |
328 |
> > # Set the amount of seconds start-stop-daemon waits after starting |
329 |
> > # the daemon to check it is still running. If it's not then we |
330 |
> > # try and stop any children if possible. |
331 |
> > RC_WAIT_ON_START="0.1" |
332 |
> > +++ RC_WAIT_ON_START=0.1 |
333 |
> > |
334 |
> > |
335 |
> > |
336 |
> > ######################################################################### |
337 |
> >##### # SERVICE CONFIGURATION VARIABLES |
338 |
> > # These variables are documented here, but should be configured in |
339 |
> > # /etc/conf.d/foo for service foo and NOT enabled here unless you |
340 |
> > # really want them to work on a global basis. |
341 |
> > |
342 |
> > # Some daemons are started and stopped via start-stop-daemon. |
343 |
> > # We can launch them through other daemons here, for example valgrind. |
344 |
> > # This is only useful for serious debugging of the daemon |
345 |
> > # WARNING: If the script's "stop" function does not supply a PID file |
346 |
> > then # all processes using the same daemon will be killed. |
347 |
> > #RC_DAEMON="/usr/bin/valgrind --tool=memcheck |
348 |
> > --log-file=/tmp/valgrind.syslog-ng" |
349 |
> > |
350 |
> > # strace needs to be prefixed with --background as it does not detach |
351 |
> > when # it's following |
352 |
> > #RC_DAEMON="--background /usr/sbin/strace -f -o /tmp/strace.syslog-ng" |
353 |
> > |
354 |
> > # Pass ulimit parameters |
355 |
> > #RC_ULIMIT="-u 30" |
356 |
> > |
357 |
> > |
358 |
> > ######################################################################### |
359 |
> >##### |
360 |
> > |
361 |
> > |
362 |
> > # |
363 |
> > # Internal configuration variables |
364 |
> > # |
365 |
> > # NB: These are for advanced users, and you should really |
366 |
> > # know what you are doing before changing them! |
367 |
> > # |
368 |
> > |
369 |
> > # rc-scripts dep-cache directory |
370 |
> > # |
371 |
> > # NOTE: Do not remove the next line, as its needed by the baselayout |
372 |
> > ebuild! |
373 |
> > # |
374 |
> > # svcdir="/var/lib/init.d" |
375 |
> > |
376 |
> > svcdir="/var/lib/init.d" |
377 |
> > +++ svcdir=/var/lib/init.d |
378 |
> > |
379 |
> > # Should we mount $svcdir in a ram disk for some speed increase |
380 |
> > # for slower machines, or for the more extreme setups ? |
381 |
> > |
382 |
> > svcmount="no" |
383 |
> > +++ svcmount=no |
384 |
> > |
385 |
> > # FS type that should be used for $svcdir. Note that you need |
386 |
> > # $svcmount above set to "yes" for this to work ... Currently |
387 |
> > # tmpfs, ramfs, and ramdisk are supported (tmpfs is the default). |
388 |
> > |
389 |
> > svcfstype="tmpfs" |
390 |
> > +++ svcfstype=tmpfs |
391 |
> > |
392 |
> > # Size of $svcdir in KB. Note that ramfs doesn't support this |
393 |
> > # due to kernel limitations. |
394 |
> > |
395 |
> > svcsize=2048 |
396 |
> > +++ svcsize=2048 |
397 |
> > |
398 |
> > # Check /etc/conf.d/rc for a description of these ... |
399 |
> > declare -r svclib="/lib/rcscripts" |
400 |
> > ++ declare -r svclib=/lib/rcscripts |
401 |
> > declare -r svcdir="${svcdir:-/var/lib/init.d}" |
402 |
> > ++ declare -r svcdir=/var/lib/init.d |
403 |
> > svcmount="${svcmount:-no}" |
404 |
> > ++ svcmount=no |
405 |
> > svcfstype="${svcfstype:-tmpfs}" |
406 |
> > ++ svcfstype=tmpfs |
407 |
> > svcsize="${svcsize:-1024}" |
408 |
> > ++ svcsize=2048 |
409 |
> > |
410 |
> > # Different types of dependencies |
411 |
> > deptypes="need use" |
412 |
> > ++ deptypes='need use' |
413 |
> > # Different types of order deps |
414 |
> > ordtypes="before after" |
415 |
> > ++ ordtypes='before after' |
416 |
> > |
417 |
> > # |
418 |
> > # Internal variables |
419 |
> > # |
420 |
> > |
421 |
> > # Dont output to stdout? |
422 |
> > RC_QUIET_STDOUT="${RC_QUIET_STDOUT:-no}" |
423 |
> > ++ RC_QUIET_STDOUT=no |
424 |
> > RC_VERBOSE="${RC_VERBOSE:-no}" |
425 |
> > ++ RC_VERBOSE=no |
426 |
> > |
427 |
> > # Should we use color? |
428 |
> > RC_NOCOLOR="${RC_NOCOLOR:-no}" |
429 |
> > ++ RC_NOCOLOR=no |
430 |
> > # Can the terminal handle endcols? |
431 |
> > RC_ENDCOL="yes" |
432 |
> > ++ RC_ENDCOL=yes |
433 |
> > |
434 |
> > # |
435 |
> > # Default values for rc system |
436 |
> > # |
437 |
> > RC_TTY_NUMBER="${RC_TTY_NUMBER:-11}" |
438 |
> > ++ RC_TTY_NUMBER=11 |
439 |
> > RC_PARALLEL_STARTUP="${RC_PARALLEL_STARTUP:-no}" |
440 |
> > ++ RC_PARALLEL_STARTUP=no |
441 |
> > RC_NET_STRICT_CHECKING="${RC_NET_STRICT_CHECKING:-no}" |
442 |
> > ++ RC_NET_STRICT_CHECKING=no |
443 |
> > RC_USE_FSTAB="${RC_USE_FSTAB:-no}" |
444 |
> > ++ RC_USE_FSTAB=no |
445 |
> > RC_USE_CONFIG_PROFILE="${RC_USE_CONFIG_PROFILE:-yes}" |
446 |
> > ++ RC_USE_CONFIG_PROFILE=yes |
447 |
> > RC_FORCE_AUTO="${RC_FORCE_AUTO:-no}" |
448 |
> > ++ RC_FORCE_AUTO=no |
449 |
> > RC_DEVICES="${RC_DEVICES:-auto}" |
450 |
> > ++ RC_DEVICES=auto |
451 |
> > RC_DOWN_INTERFACE="${RC_DOWN_INTERFACE:-yes}" |
452 |
> > ++ RC_DOWN_INTERFACE=yes |
453 |
> > RC_VOLUME_ORDER="${RC_VOLUME_ORDER:-raid evms lvm dm}" |
454 |
> > ++ RC_VOLUME_ORDER='raid evms lvm dm' |
455 |
> > |
456 |
> > # |
457 |
> > # Default values for e-message indentation and dots |
458 |
> > # |
459 |
> > RC_INDENTATION='' |
460 |
> > ++ RC_INDENTATION= |
461 |
> > RC_DEFAULT_INDENT=2 |
462 |
> > ++ RC_DEFAULT_INDENT=2 |
463 |
> > #RC_DOT_PATTERN=' .' |
464 |
> > RC_DOT_PATTERN='' |
465 |
> > ++ RC_DOT_PATTERN= |
466 |
> > |
467 |
> > # bool has_addon(addon) |
468 |
> > # |
469 |
> > # See if addon exists. |
470 |
> > # |
471 |
> > has_addon() { |
472 |
> > [[ -e ${svclib}/addons/$1 ]] |
473 |
> > } |
474 |
> > |
475 |
> > # void import_addon(char *addon) |
476 |
> > # |
477 |
> > # Import code from the specified addon if it exists |
478 |
> > # |
479 |
> > import_addon() { |
480 |
> > local addon="${svclib}/addons/$1" |
481 |
> > if has_addon $1 ; then |
482 |
> > source "${addon}" |
483 |
> > return 0 |
484 |
> > fi |
485 |
> > return 1 |
486 |
> > } |
487 |
> > |
488 |
> > # void splash(...) |
489 |
> > # |
490 |
> > # Notify bootsplash/splashutils/gensplash/whatever about |
491 |
> > # important events. |
492 |
> > # |
493 |
> > splash() { |
494 |
> > return 0 |
495 |
> > } |
496 |
> > # This will override the splash() function... |
497 |
> > if ! import_addon splash-functions.sh ; then |
498 |
> > [[ -f /sbin/splash-functions.sh ]] && source |
499 |
> > /sbin/splash-functions.sh |
500 |
> > fi |
501 |
> > ++ import_addon splash-functions.sh |
502 |
> > ++ local addon=/lib/rcscripts/addons/splash-functions.sh |
503 |
> > ++ has_addon splash-functions.sh |
504 |
> > ++ [[ -e /lib/rcscripts/addons/splash-functions.sh ]] |
505 |
> > ++ return 1 |
506 |
> > ++ [[ -f /sbin/splash-functions.sh ]] |
507 |
> > |
508 |
> > # void profiling(...) |
509 |
> > # |
510 |
> > # Notify bootsplash/whatever about important events. |
511 |
> > # |
512 |
> > profiling() { |
513 |
> > return 0 |
514 |
> > } |
515 |
> > import_addon profiling-functions.sh |
516 |
> > ++ import_addon profiling-functions.sh |
517 |
> > ++ local addon=/lib/rcscripts/addons/profiling-functions.sh |
518 |
> > ++ has_addon profiling-functions.sh |
519 |
> > ++ [[ -e /lib/rcscripts/addons/profiling-functions.sh ]] |
520 |
> > ++ return 1 |
521 |
> > |
522 |
> > # void bootlog(...) |
523 |
> > # |
524 |
> > # Notify bootlogger about important events. |
525 |
> > bootlog() { |
526 |
> > return 0 |
527 |
> > } |
528 |
> > [[ ${RC_BOOTLOG} == "yes" ]] && import_addon bootlogger.sh |
529 |
> > ++ [[ no == \y\e\s ]] |
530 |
> > |
531 |
> > # void get_bootconfig() |
532 |
> > # |
533 |
> > # Get the BOOTLEVEL and SOFTLEVEL by setting |
534 |
> > # 'bootlevel' and 'softlevel' via kernel |
535 |
> > # parameters. |
536 |
> > # |
537 |
> > get_bootconfig() { |
538 |
> > local copt= |
539 |
> > local newbootlevel= |
540 |
> > local newsoftlevel= |
541 |
> > |
542 |
> > if [[ -r /proc/cmdline ]] ; then |
543 |
> > for copt in $(</proc/cmdline) ; do |
544 |
> > case "${copt%=*}" in |
545 |
> > bootlevel) |
546 |
> > newbootlevel="${copt##*=}" |
547 |
> > ;; |
548 |
> > softlevel) |
549 |
> > newsoftlevel="${copt##*=}" |
550 |
> > ;; |
551 |
> > esac |
552 |
> > done |
553 |
> > fi |
554 |
> > |
555 |
> > if [[ -n ${newbootlevel} ]] ; then |
556 |
> > export BOOTLEVEL="${newbootlevel}" |
557 |
> > else |
558 |
> > export BOOTLEVEL="boot" |
559 |
> > fi |
560 |
> > |
561 |
> > if [[ -n ${newsoftlevel} ]] ; then |
562 |
> > export DEFAULTLEVEL="${newsoftlevel}" |
563 |
> > else |
564 |
> > export DEFAULTLEVEL="default" |
565 |
> > fi |
566 |
> > |
567 |
> > return 0 |
568 |
> > } |
569 |
> > |
570 |
> > setup_defaultlevels() { |
571 |
> > get_bootconfig |
572 |
> > |
573 |
> > if get_bootparam "noconfigprofile" ; then |
574 |
> > export RC_USE_CONFIG_PROFILE="no" |
575 |
> > |
576 |
> > elif get_bootparam "configprofile" ; then |
577 |
> > export RC_USE_CONFIG_PROFILE="yes" |
578 |
> > fi |
579 |
> > |
580 |
> > if [[ ${RC_USE_CONFIG_PROFILE} == "yes" && -n ${DEFAULTLEVEL} ]] |
581 |
> > && \ |
582 |
> > [[ -d "/etc/runlevels/${BOOTLEVEL}.${DEFAULTLEVEL}" || \ |
583 |
> > -L "/etc/runlevels/${BOOTLEVEL}.${DEFAULTLEVEL}" ]] ; then |
584 |
> > export BOOTLEVEL="${BOOTLEVEL}.${DEFAULTLEVEL}" |
585 |
> > fi |
586 |
> > |
587 |
> > if [[ -z ${SOFTLEVEL} ]] ; then |
588 |
> > if [[ -f "${svcdir}/softlevel" ]] ; then |
589 |
> > export SOFTLEVEL=$(< "${svcdir}/softlevel") |
590 |
> > else |
591 |
> > export SOFTLEVEL="${BOOTLEVEL}" |
592 |
> > fi |
593 |
> > fi |
594 |
> > |
595 |
> > return 0 |
596 |
> > } |
597 |
> > |
598 |
> > # void get_libdir(void) |
599 |
> > # |
600 |
> > # prints the current libdir {lib,lib32,lib64} |
601 |
> > # |
602 |
> > get_libdir() { |
603 |
> > if [[ -n ${CONF_LIBDIR_OVERRIDE} ]] ; then |
604 |
> > CONF_LIBDIR="${CONF_LIBDIR_OVERRIDE}" |
605 |
> > elif [[ -x /usr/bin/portageq ]] ; then |
606 |
> > CONF_LIBDIR="$(/usr/bin/portageq envvar CONF_LIBDIR)" |
607 |
> > fi |
608 |
> > echo "${CONF_LIBDIR:=lib}" |
609 |
> > } |
610 |
> > |
611 |
> > # void esyslog(char* priority, char* tag, char* message) |
612 |
> > # |
613 |
> > # use the system logger to log a message |
614 |
> > # |
615 |
> > esyslog() { |
616 |
> > local pri= |
617 |
> > local tag= |
618 |
> > |
619 |
> > if [[ -x /usr/bin/logger ]] ; then |
620 |
> > pri="$1" |
621 |
> > tag="$2" |
622 |
> > |
623 |
> > shift 2 |
624 |
> > [[ -z "$*" ]] && return 0 |
625 |
> > |
626 |
> > /usr/bin/logger -p "${pri}" -t "${tag}" -- "$*" |
627 |
> > fi |
628 |
> > |
629 |
> > return 0 |
630 |
> > } |
631 |
> > |
632 |
> > # void eindent(int num) |
633 |
> > # |
634 |
> > # increase the indent used for e-commands. |
635 |
> > # |
636 |
> > eindent() { |
637 |
> > local i="$1" |
638 |
> > (( i > 0 )) || (( i = RC_DEFAULT_INDENT )) |
639 |
> > esetdent $(( ${#RC_INDENTATION} + i )) |
640 |
> > } |
641 |
> > |
642 |
> > # void eoutdent(int num) |
643 |
> > # |
644 |
> > # decrease the indent used for e-commands. |
645 |
> > # |
646 |
> > eoutdent() { |
647 |
> > local i="$1" |
648 |
> > (( i > 0 )) || (( i = RC_DEFAULT_INDENT )) |
649 |
> > esetdent $(( ${#RC_INDENTATION} - i )) |
650 |
> > } |
651 |
> > |
652 |
> > # void esetdent(int num) |
653 |
> > # |
654 |
> > # hard set the indent used for e-commands. |
655 |
> > # num defaults to 0 |
656 |
> > # |
657 |
> > esetdent() { |
658 |
> > local i="$1" |
659 |
> > (( i < 0 )) && (( i = 0 )) |
660 |
> > RC_INDENTATION=$(printf "%${i}s" '') |
661 |
> > } |
662 |
> > |
663 |
> > # void einfo(char* message) |
664 |
> > # |
665 |
> > # show an informative message (with a newline) |
666 |
> > # |
667 |
> > einfo() { |
668 |
> > einfon "$*\n" |
669 |
> > LAST_E_CMD="einfo" |
670 |
> > return 0 |
671 |
> > } |
672 |
> > |
673 |
> > # void einfon(char* message) |
674 |
> > # |
675 |
> > # show an informative message (without a newline) |
676 |
> > # |
677 |
> > einfon() { |
678 |
> > [[ ${RC_QUIET_STDOUT} == "yes" ]] && return 0 |
679 |
> > [[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo |
680 |
> > echo -ne " ${GOOD}*${NORMAL} ${RC_INDENTATION}$*" |
681 |
> > LAST_E_CMD="einfon" |
682 |
> > return 0 |
683 |
> > } |
684 |
> > |
685 |
> > # void ewarn(char* message) |
686 |
> > # |
687 |
> > # show a warning message + log it |
688 |
> > # |
689 |
> > ewarn() { |
690 |
> > if [[ ${RC_QUIET_STDOUT} == "yes" ]] ; then |
691 |
> > echo " $*" |
692 |
> > else |
693 |
> > [[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] |
694 |
> > && echo |
695 |
> > echo -e " ${WARN}*${NORMAL} ${RC_INDENTATION}$*" |
696 |
> > fi |
697 |
> > |
698 |
> > local name="rc-scripts" |
699 |
> > [[ $0 != "/sbin/runscript.sh" ]] && name="${0##*/}" |
700 |
> > # Log warnings to system log |
701 |
> > esyslog "daemon.warning" "${name}" "$*" |
702 |
> > |
703 |
> > LAST_E_CMD="ewarn" |
704 |
> > return 0 |
705 |
> > } |
706 |
> > |
707 |
> > # void eerror(char* message) |
708 |
> > # |
709 |
> > # show an error message + log it |
710 |
> > # |
711 |
> > eerror() { |
712 |
> > if [[ ${RC_QUIET_STDOUT} == "yes" ]] ; then |
713 |
> > echo " $*" >/dev/stderr |
714 |
> > else |
715 |
> > [[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] |
716 |
> > && echo |
717 |
> > echo -e " ${BAD}*${NORMAL} ${RC_INDENTATION}$*" |
718 |
> > fi |
719 |
> > |
720 |
> > local name="rc-scripts" |
721 |
> > [[ $0 != "/sbin/runscript.sh" ]] && name="${0##*/}" |
722 |
> > # Log errors to system log |
723 |
> > esyslog "daemon.err" "rc-scripts" "$*" |
724 |
> > |
725 |
> > LAST_E_CMD="eerror" |
726 |
> > return 0 |
727 |
> > } |
728 |
> > |
729 |
> > # void ebegin(char* message) |
730 |
> > # |
731 |
> > # show a message indicating the start of a process |
732 |
> > # |
733 |
> > ebegin() { |
734 |
> > local msg="$*" dots spaces="${RC_DOT_PATTERN//?/ }" |
735 |
> > [[ ${RC_QUIET_STDOUT} == "yes" ]] && return 0 |
736 |
> > |
737 |
> > if [[ -n ${RC_DOT_PATTERN} ]] ; then |
738 |
> > dots="$(printf "%$((COLS - 3 - ${#RC_INDENTATION} - |
739 |
> > ${#msg} - |
740 |
> > 7))s" '')" |
741 |
> > dots="${dots//${spaces}/${RC_DOT_PATTERN}}" |
742 |
> > msg="${msg}${dots}" |
743 |
> > else |
744 |
> > msg="${msg} ..." |
745 |
> > fi |
746 |
> > einfon "${msg}" |
747 |
> > [[ ${RC_ENDCOL} == "yes" ]] && echo |
748 |
> > |
749 |
> > LAST_E_LEN="$(( 3 + ${#RC_INDENTATION} + ${#msg} ))" |
750 |
> > LAST_E_CMD="ebegin" |
751 |
> > return 0 |
752 |
> > } |
753 |
> > |
754 |
> > # void _eend(int error, char *efunc, char* errstr) |
755 |
> > # |
756 |
> > # indicate the completion of process, called from eend/ewend |
757 |
> > # if error, show errstr via efunc |
758 |
> > # |
759 |
> > # This function is private to functions.sh. Do not call it from a |
760 |
> > # script. |
761 |
> > # |
762 |
> > _eend() { |
763 |
> > local retval="${1:-0}" efunc="${2:-eerror}" msg |
764 |
> > shift 2 |
765 |
> > |
766 |
> > if [[ ${retval} == "0" ]] ; then |
767 |
> > [[ ${RC_QUIET_STDOUT} == "yes" ]] && return 0 |
768 |
> > msg="${BRACKET}[ ${GOOD}ok${BRACKET} ]${NORMAL}" |
769 |
> > else |
770 |
> > if [[ -c /dev/null ]] ; then |
771 |
> > rc_splash "stop" &>/dev/null & |
772 |
> > else |
773 |
> > rc_splash "stop" & |
774 |
> > fi |
775 |
> > if [[ -n $* ]] ; then |
776 |
> > ${efunc} "$*" |
777 |
> > fi |
778 |
> > msg="${BRACKET}[ ${BAD}!!${BRACKET} ]${NORMAL}" |
779 |
> > fi |
780 |
> > |
781 |
> > if [[ ${RC_ENDCOL} == "yes" ]] ; then |
782 |
> > echo -e "${ENDCOL} ${msg}" |
783 |
> > else |
784 |
> > [[ ${LAST_E_CMD} == ebegin ]] || LAST_E_LEN=0 |
785 |
> > printf "%$(( COLS - LAST_E_LEN - 6 ))s%b\n" '' "${msg}" |
786 |
> > fi |
787 |
> > |
788 |
> > return ${retval} |
789 |
> > } |
790 |
> > |
791 |
> > # void eend(int error, char* errstr) |
792 |
> > # |
793 |
> > # indicate the completion of process |
794 |
> > # if error, show errstr via eerror |
795 |
> > # |
796 |
> > eend() { |
797 |
> > local retval="${1:-0}" |
798 |
> > shift |
799 |
> > |
800 |
> > _eend "${retval}" eerror "$*" |
801 |
> > |
802 |
> > LAST_E_CMD="eend" |
803 |
> > return ${retval} |
804 |
> > } |
805 |
> > |
806 |
> > # void ewend(int error, char* errstr) |
807 |
> > # |
808 |
> > # indicate the completion of process |
809 |
> > # if error, show errstr via ewarn |
810 |
> > # |
811 |
> > ewend() { |
812 |
> > local retval="${1:-0}" |
813 |
> > shift |
814 |
> > |
815 |
> > _eend "${retval}" ewarn "$*" |
816 |
> > |
817 |
> > LAST_E_CMD="ewend" |
818 |
> > return ${retval} |
819 |
> > } |
820 |
> > |
821 |
> > # v-e-commands honor RC_VERBOSE which defaults to no. |
822 |
> > # The condition is negated so the return value will be zero. |
823 |
> > veinfo() { [[ ${RC_VERBOSE} != "yes" ]] || einfo "$@"; } |
824 |
> > veinfon() { [[ ${RC_VERBOSE} != "yes" ]] || einfon "$@"; } |
825 |
> > vewarn() { [[ ${RC_VERBOSE} != "yes" ]] || ewarn "$@"; } |
826 |
> > veerror() { [[ ${RC_VERBOSE} != "yes" ]] || eerror "$@"; } |
827 |
> > vebegin() { [[ ${RC_VERBOSE} != "yes" ]] || ebegin "$@"; } |
828 |
> > veend() { |
829 |
> > [[ ${RC_VERBOSE} == "yes" ]] && { eend "$@"; return $?; } |
830 |
> > return ${1:-0} |
831 |
> > } |
832 |
> > vewend() { |
833 |
> > [[ ${RC_VERBOSE} == "yes" ]] && { ewend "$@"; return $?; } |
834 |
> > return ${1:-0} |
835 |
> > } |
836 |
> > |
837 |
> > # char *KV_major(string) |
838 |
> > # |
839 |
> > # Return the Major (X of X.Y.Z) kernel version |
840 |
> > # |
841 |
> > KV_major() { |
842 |
> > [[ -z $1 ]] && return 1 |
843 |
> > |
844 |
> > local KV="$@" |
845 |
> > echo "${KV%%.*}" |
846 |
> > } |
847 |
> > |
848 |
> > # char *KV_minor(string) |
849 |
> > # |
850 |
> > # Return the Minor (Y of X.Y.Z) kernel version |
851 |
> > # |
852 |
> > KV_minor() { |
853 |
> > [[ -z $1 ]] && return 1 |
854 |
> > |
855 |
> > local KV="$@" |
856 |
> > KV="${KV#*.}" |
857 |
> > echo "${KV%%.*}" |
858 |
> > } |
859 |
> > |
860 |
> > # char *KV_micro(string) |
861 |
> > # |
862 |
> > # Return the Micro (Z of X.Y.Z) kernel version. |
863 |
> > # |
864 |
> > KV_micro() { |
865 |
> > [[ -z $1 ]] && return 1 |
866 |
> > |
867 |
> > local KV="$@" |
868 |
> > KV="${KV#*.*.}" |
869 |
> > echo "${KV%%[^[:digit:]]*}" |
870 |
> > } |
871 |
> > |
872 |
> > # int KV_to_int(string) |
873 |
> > # |
874 |
> > # Convert a string type kernel version (2.4.0) to an int (132096) |
875 |
> > # for easy compairing or versions ... |
876 |
> > # |
877 |
> > KV_to_int() { |
878 |
> > [[ -z $1 ]] && return 1 |
879 |
> > |
880 |
> > local KV_MAJOR="$(KV_major "$1")" |
881 |
> > local KV_MINOR="$(KV_minor "$1")" |
882 |
> > local KV_MICRO="$(KV_micro "$1")" |
883 |
> > local KV_int="$(( KV_MAJOR * 65536 + KV_MINOR * 256 + KV_MICRO ))" |
884 |
> > |
885 |
> > # We make version 2.2.0 the minimum version we will handle as |
886 |
> > # a sanity check ... if its less, we fail ... |
887 |
> > if [[ ${KV_int} -ge 131584 ]] ; then |
888 |
> > echo "${KV_int}" |
889 |
> > return 0 |
890 |
> > fi |
891 |
> > |
892 |
> > return 1 |
893 |
> > } |
894 |
> > |
895 |
> > # int get_KV() |
896 |
> > # |
897 |
> > # Return the kernel version (major, minor and micro concated) as an |
898 |
> > integer. |
899 |
> > # Assumes X and Y of X.Y.Z are numbers. Also assumes that some |
900 |
> > leading # portion of Z is a number. |
901 |
> > # e.g. 2.4.25, 2.6.10, 2.6.4-rc3, 2.2.40-poop, 2.0.15+foo |
902 |
> > # |
903 |
> > _RC_GET_KV_CACHE="" |
904 |
> > ++ _RC_GET_KV_CACHE= |
905 |
> > get_KV() { |
906 |
> > [[ -z ${_RC_GET_KV_CACHE} ]] \ |
907 |
> > && _RC_GET_KV_CACHE="$(uname -r)" |
908 |
> > |
909 |
> > echo "$(KV_to_int "${_RC_GET_KV_CACHE}")" |
910 |
> > |
911 |
> > return $? |
912 |
> > } |
913 |
> > |
914 |
> > # bool get_bootparam(param) |
915 |
> > # |
916 |
> > # return 0 if gentoo=param was passed to the kernel |
917 |
> > # |
918 |
> > # EXAMPLE: if get_bootparam "nodevfs" ; then .... |
919 |
> > # |
920 |
> > get_bootparam() { |
921 |
> > local x copt params retval=1 |
922 |
> > |
923 |
> > [[ ! -r /proc/cmdline ]] && return 1 |
924 |
> > |
925 |
> > for copt in $(< /proc/cmdline) ; do |
926 |
> > if [[ ${copt%=*} == "gentoo" ]] ; then |
927 |
> > params=$(gawk -v PARAMS="${copt##*=}" ' |
928 |
> > BEGIN { |
929 |
> > split(PARAMS, nodes, ",") |
930 |
> > for (x in nodes) |
931 |
> > print nodes[x] |
932 |
> > }') |
933 |
> > |
934 |
> > # Parse gentoo option |
935 |
> > for x in ${params} ; do |
936 |
> > if [[ ${x} == "$1" ]] ; then |
937 |
> > # echo "YES" |
938 |
> > retval=0 |
939 |
> > fi |
940 |
> > done |
941 |
> > fi |
942 |
> > done |
943 |
> > |
944 |
> > return ${retval} |
945 |
> > } |
946 |
> > |
947 |
> > # Safer way to list the contents of a directory, |
948 |
> > # as it do not have the "empty dir bug". |
949 |
> > # |
950 |
> > # char *dolisting(param) |
951 |
> > # |
952 |
> > # print a list of the directory contents |
953 |
> > # |
954 |
> > # NOTE: quote the params if they contain globs. |
955 |
> > # also, error checking is not that extensive ... |
956 |
> > # |
957 |
> > dolisting() { |
958 |
> > local x= |
959 |
> > local y= |
960 |
> > local tmpstr= |
961 |
> > local mylist= |
962 |
> > local mypath="$*" |
963 |
> > |
964 |
> > if [[ ${mypath%/\*} != "${mypath}" ]] ; then |
965 |
> > mypath=${mypath%/\*} |
966 |
> > fi |
967 |
> > |
968 |
> > for x in ${mypath} ; do |
969 |
> > [[ ! -e ${x} ]] && continue |
970 |
> > |
971 |
> > if [[ ! -d ${x} ]] && [[ -L ${x} || -f ${x} ]] ; then |
972 |
> > mylist="${mylist} $(ls "${x}" 2> /dev/null)" |
973 |
> > else |
974 |
> > [[ ${x%/} != "${x}" ]] && x=${x%/} |
975 |
> > |
976 |
> > cd "${x}"; tmpstr=$(ls) |
977 |
> > |
978 |
> > for y in ${tmpstr} ; do |
979 |
> > mylist="${mylist} ${x}/${y}" |
980 |
> > done |
981 |
> > fi |
982 |
> > done |
983 |
> > |
984 |
> > echo "${mylist}" |
985 |
> > } |
986 |
> > |
987 |
> > |
988 |
> > # char *add_suffix(char * configfile) |
989 |
> > # |
990 |
> > # Returns a config file name with the softlevel suffix |
991 |
> > # appended to it. For use with multi-config services. |
992 |
> > add_suffix() { |
993 |
> > if [[ ${RC_USE_CONFIG_PROFILE} != "yes" ]] ; then |
994 |
> > echo "$1" |
995 |
> > return 0 |
996 |
> > fi |
997 |
> > |
998 |
> > local suffix="${SOFTLEVEL}" |
999 |
> > [[ ${SOFTLEVEL} == "${BOOTLEVEL}" \ |
1000 |
> > |
1001 |
> > || ${SOFTLEVEL} == "reboot" \ |
1002 |
> > || ${SOFTLEVEL} == "shutdown" \ |
1003 |
> > || ${SOFTLEVEL} == "single" ]] \ |
1004 |
> > |
1005 |
> > && suffix="${DEFAULTLEVEL}" |
1006 |
> > if [[ -e "$1.${suffix}" ]] ; then |
1007 |
> > echo "$1.${suffix}" |
1008 |
> > else |
1009 |
> > echo "$1" |
1010 |
> > fi |
1011 |
> > |
1012 |
> > return 0 |
1013 |
> > } |
1014 |
> > |
1015 |
> > # char *get_base_ver() |
1016 |
> > # |
1017 |
> > # get the version of baselayout that this system is running |
1018 |
> > # |
1019 |
> > get_base_ver() { |
1020 |
> > [[ ! -r /etc/gentoo-release ]] && return 0 |
1021 |
> > local ver="$(</etc/gentoo-release)" |
1022 |
> > echo "${ver##* }" |
1023 |
> > } |
1024 |
> > |
1025 |
> > # Network filesystems list for common use in rc-scripts. |
1026 |
> > # This variable is used in is_net_fs and other places such as |
1027 |
> > # localmount. |
1028 |
> > NET_FS_LIST="afs cifs coda davfs fuse gfs ncpfs nfs nfs4 ocfs2 shfs |
1029 |
> > smbfs" ++ NET_FS_LIST='afs cifs coda davfs fuse gfs ncpfs nfs nfs4 ocfs2 |
1030 |
> > shfs smbfs' |
1031 |
> > |
1032 |
> > # bool is_net_fs(path) |
1033 |
> > # |
1034 |
> > # return 0 if path is the mountpoint of a networked filesystem |
1035 |
> > # |
1036 |
> > # EXAMPLE: if is_net_fs / ; then ... |
1037 |
> > # |
1038 |
> > is_net_fs() { |
1039 |
> > local fstype |
1040 |
> > # /proc/mounts is always accurate but may not always be available |
1041 |
> > if [[ -e /proc/mounts ]] ; then |
1042 |
> > fstype="$( sed -n -e '/^rootfs/!s:.* '"$1"' \([^ ]*\).*: |
1043 |
> > \1:p' /proc/mounts )" |
1044 |
> > else |
1045 |
> > fstype="$( mount | sed -n -e 's:.* on '"$1"' type \([^ |
1046 |
> > ]*\).*: |
1047 |
> > \1:p' )" |
1048 |
> > fi |
1049 |
> > [[ " ${NET_FS_LIST} " == *" ${fstype} "* ]] |
1050 |
> > return $? |
1051 |
> > } |
1052 |
> > |
1053 |
> > # bool is_net_fs(path) |
1054 |
> > # |
1055 |
> > # return 0 if path is under unionfs control |
1056 |
> > # |
1057 |
> > # EXAMPLE: if is_union_fs / ; then ... |
1058 |
> > # |
1059 |
> > is_union_fs() { |
1060 |
> > [[ ! -x /sbin/unionctl ]] && return 1 |
1061 |
> > unionctl "$1" --list &>/dev/null |
1062 |
> > } |
1063 |
> > |
1064 |
> > # bool is_uml_sys() |
1065 |
> > # |
1066 |
> > # return 0 if the currently running system is User Mode Linux |
1067 |
> > # |
1068 |
> > # EXAMPLE: if is_uml_sys ; then ... |
1069 |
> > # |
1070 |
> > is_uml_sys() { |
1071 |
> > grep -qs 'UML' /proc/cpuinfo |
1072 |
> > } |
1073 |
> > |
1074 |
> > # bool is_vserver_sys() |
1075 |
> > # |
1076 |
> > # return 0 if the currently running system is a Linux VServer |
1077 |
> > # |
1078 |
> > # EXAMPLE: if is_vserver_sys ; then ... |
1079 |
> > # |
1080 |
> > is_vserver_sys() { |
1081 |
> > grep -qs '^s_context:[[:space:]]*[1-9]' /proc/self/status |
1082 |
> > } |
1083 |
> > |
1084 |
> > # bool is_vz_sys() |
1085 |
> > # |
1086 |
> > # return 0 if the currently running system is OpenVZ container |
1087 |
> > # |
1088 |
> > # EXAMPLE: if is_vz_sys ; then ... |
1089 |
> > # |
1090 |
> > is_vz_sys() { |
1091 |
> > grep -qs '^envID:[[:space:]]*[1-9]' /proc/self/status |
1092 |
> > } |
1093 |
> > |
1094 |
> > # bool is_xenU_sys() |
1095 |
> > # |
1096 |
> > # return 0 if the currently running system is an unprivileged Xen |
1097 |
> > domain # |
1098 |
> > # EXAMPLE: if is_xenU_sys ; then ... |
1099 |
> > # |
1100 |
> > is_xenU_sys() { |
1101 |
> > [[ ! -d /proc/xen ]] && return 1 |
1102 |
> > [[ ! -r /proc/xen/capabilities ]] && return 1 |
1103 |
> > grep -q "control_d" /proc/xen/capabilities && return 1 |
1104 |
> > return 0 |
1105 |
> > } |
1106 |
> > |
1107 |
> > # bool get_mount_fstab(path) |
1108 |
> > # |
1109 |
> > # return the parameters to pass to the mount command generated from |
1110 |
> > fstab # |
1111 |
> > # EXAMPLE: cmd=$( get_mount_fstab /proc ) |
1112 |
> > # cmd=${cmd:--t proc none /proc} |
1113 |
> > # mount -n ${cmd} |
1114 |
> > # |
1115 |
> > get_mount_fstab() { |
1116 |
> > gawk '$1 ~ "^#" { next } |
1117 |
> > $2 == "'$*'" { stab="-t "$3" -o "$4" "$1" "$2; } |
1118 |
> > END { print stab; } |
1119 |
> > ' /etc/fstab |
1120 |
> > } |
1121 |
> > |
1122 |
> > # char *reverse_list(list) |
1123 |
> > # |
1124 |
> > # Returns the reversed order of list |
1125 |
> > # |
1126 |
> > reverse_list() { |
1127 |
> > for (( i = $# ; i > 0 ; --i )) ; do |
1128 |
> > echo -n "${!i} " |
1129 |
> > done |
1130 |
> > } |
1131 |
> > |
1132 |
> > # void start_addon(addon) |
1133 |
> > # |
1134 |
> > # Starts addon. |
1135 |
> > # |
1136 |
> > start_addon() { |
1137 |
> > local addon="$1" |
1138 |
> > (import_addon "${addon}-start.sh") |
1139 |
> > return 0 |
1140 |
> > } |
1141 |
> > |
1142 |
> > # void stop_addon(addon) |
1143 |
> > # |
1144 |
> > # Stops addon. |
1145 |
> > # |
1146 |
> > stop_addon() { |
1147 |
> > local addon=$1 |
1148 |
> > (import_addon "${addon}-stop.sh") |
1149 |
> > return 0 |
1150 |
> > } |
1151 |
> > |
1152 |
> > # bool is_older_than(reference, files/dirs to check) |
1153 |
> > # |
1154 |
> > # return 0 if any of the files/dirs are newer than |
1155 |
> > # the reference file |
1156 |
> > # |
1157 |
> > # EXAMPLE: if is_older_than a.out *.o ; then ... |
1158 |
> > is_older_than() { |
1159 |
> > local x= |
1160 |
> > local ref="$1" |
1161 |
> > shift |
1162 |
> > |
1163 |
> > for x in "$@" ; do |
1164 |
> > [[ ${x} -nt ${ref} ]] && return 0 |
1165 |
> > [[ -d ${x} ]] && is_older_than "${ref}" "${x}"/* && return |
1166 |
> > 0 done |
1167 |
> > |
1168 |
> > return 1 |
1169 |
> > } |
1170 |
> > |
1171 |
> > # char* bash_variable(char *variable) |
1172 |
> > # |
1173 |
> > # Turns the given variable into something that bash can use |
1174 |
> > # Basically replaces anything not a-z,A-Z into a _ |
1175 |
> > # |
1176 |
> > bash_variable() { |
1177 |
> > local args="$@" |
1178 |
> > LC_ALL=C echo "${args//[![:word:]]/_}" |
1179 |
> > } |
1180 |
> > |
1181 |
> > # void requote() |
1182 |
> > # |
1183 |
> > # Requotes params so they're suitable to be eval'd, just like this |
1184 |
> > would: # set -- 1 2 "3 4" |
1185 |
> > # /usr/bin/getopt -- '' "$@" | sed 's/^ -- //' |
1186 |
> > # |
1187 |
> > requote() { |
1188 |
> > local q=\' |
1189 |
> > set -- "${@//\'/$q\'$q}" # quote inner instances of ' |
1190 |
> > set -- "${@/#/$q}" # add ' to start of each |
1191 |
> > param |
1192 |
> > set -- "${@/%/$q}" # add ' to end of each |
1193 |
> > param echo "$*" |
1194 |
> > } |
1195 |
> > |
1196 |
> > # char* uniqify(char *arg, ...) |
1197 |
> > # |
1198 |
> > # Ensure that params are unique |
1199 |
> > # |
1200 |
> > uniqify() { |
1201 |
> > local result= x= |
1202 |
> > while [[ -n "$1" ]] ; do |
1203 |
> > [[ " ${result} " != *" $1 "* ]] && result="${result} $1" |
1204 |
> > shift |
1205 |
> > done |
1206 |
> > echo "${result# *}" |
1207 |
> > } |
1208 |
> > |
1209 |
> > |
1210 |
> > ######################################################################### |
1211 |
> >##### # |
1212 |
> > # |
1213 |
> > # This should be the last code in here, please add all functions above!! |
1214 |
> > # |
1215 |
> > # |
1216 |
> > # |
1217 |
> > # *** START LAST CODE *** |
1218 |
> > # |
1219 |
> > # |
1220 |
> > # |
1221 |
> > |
1222 |
> > ######################################################################### |
1223 |
> >##### |
1224 |
> > |
1225 |
> > if [[ -z ${EBUILD} ]] ; then |
1226 |
> > # Setup a basic $PATH. Just add system default to existing. |
1227 |
> > # This should solve both /sbin and /usr/sbin not present when |
1228 |
> > # doing 'su -c foo', or for something like: PATH= rcscript start |
1229 |
> > PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:${PATH}" |
1230 |
> > |
1231 |
> > # Cache the CONSOLETYPE - this is important as backgrounded shells |
1232 |
> > don't |
1233 |
> > # have a TTY. rc unsets it at the end of running so it shouldn't |
1234 |
> > hang |
1235 |
> > # around |
1236 |
> > if [[ -z ${CONSOLETYPE} ]] ; then |
1237 |
> > export CONSOLETYPE="$( /sbin/consoletype 2>/dev/null )" |
1238 |
> > fi |
1239 |
> > if [[ ${CONSOLETYPE} == "serial" ]] ; then |
1240 |
> > RC_NOCOLOR="yes" |
1241 |
> > RC_ENDCOL="no" |
1242 |
> > fi |
1243 |
> > |
1244 |
> > for arg in "$@" ; do |
1245 |
> > case "${arg}" in |
1246 |
> > # Lastly check if the user disabled it with |
1247 |
> > --nocolor |
1248 |
> > argument |
1249 |
> > --nocolor|-nc) |
1250 |
> > RC_NOCOLOR="yes" |
1251 |
> > ;; |
1252 |
> > esac |
1253 |
> > done |
1254 |
> > |
1255 |
> > setup_defaultlevels |
1256 |
> > |
1257 |
> > # If we are not /sbin/rc then ensure that we cannot change level |
1258 |
> > variables |
1259 |
> > if [[ -n ${BASH_SOURCE} \ |
1260 |
> > && ${BASH_SOURCE[${#BASH_SOURCE[@]}-1]} != "/sbin/rc" ]] ; |
1261 |
> > then |
1262 |
> > declare -r BOOTLEVEL DEFAULTLEVEL SOFTLEVEL |
1263 |
> > fi |
1264 |
> > else |
1265 |
> > # Should we use colors ? |
1266 |
> > if [[ $* != *depend* ]] ; then |
1267 |
> > # Check user pref in portage |
1268 |
> > RC_NOCOLOR="$(portageq envvar NOCOLOR 2>/dev/null)" |
1269 |
> > [[ ${RC_NOCOLOR} == "true" ]] && RC_NOCOLOR="yes" |
1270 |
> > else |
1271 |
> > # We do not want colors during emerge depend |
1272 |
> > RC_NOCOLOR="yes" |
1273 |
> > # No output is seen during emerge depend, so this is not |
1274 |
> > needed. |
1275 |
> > RC_ENDCOL="no" |
1276 |
> > fi |
1277 |
> > fi |
1278 |
> > ++ [[ -z '' ]] |
1279 |
> > ++ |
1280 |
> > |
1281 |
> > PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/ |
1282 |
> >usr/bin ++ [[ -z '' ]] |
1283 |
> > /sbin/consoletype 2>/dev/null |
1284 |
> > +++ /sbin/consoletype |
1285 |
> > ++ export CONSOLETYPE=pty |
1286 |
> > ++ CONSOLETYPE=pty |
1287 |
> > ++ [[ pty == \s\e\r\i\a\l ]] |
1288 |
> > ++ setup_defaultlevels |
1289 |
> > ++ get_bootconfig |
1290 |
> > ++ local copt= |
1291 |
> > ++ local newbootlevel= |
1292 |
> > ++ local newsoftlevel= |
1293 |
> > ++ [[ -r /proc/cmdline ]] |
1294 |
> > </proc/cmdline |
1295 |
> > ++ for copt in '$(</proc/cmdline)' |
1296 |
> > ++ case "${copt%=*}" in |
1297 |
> > ++ for copt in '$(</proc/cmdline)' |
1298 |
> > ++ case "${copt%=*}" in |
1299 |
> > ++ for copt in '$(</proc/cmdline)' |
1300 |
> > ++ case "${copt%=*}" in |
1301 |
> > ++ for copt in '$(</proc/cmdline)' |
1302 |
> > ++ case "${copt%=*}" in |
1303 |
> > ++ for copt in '$(</proc/cmdline)' |
1304 |
> > ++ case "${copt%=*}" in |
1305 |
> > ++ [[ -n '' ]] |
1306 |
> > ++ export BOOTLEVEL=boot |
1307 |
> > ++ BOOTLEVEL=boot |
1308 |
> > ++ [[ -n '' ]] |
1309 |
> > ++ export DEFAULTLEVEL=default |
1310 |
> > ++ DEFAULTLEVEL=default |
1311 |
> > ++ return 0 |
1312 |
> > ++ get_bootparam noconfigprofile |
1313 |
> > ++ local x copt params retval=1 |
1314 |
> > ++ [[ ! -r /proc/cmdline ]] |
1315 |
> > < /proc/cmdline |
1316 |
> > ++ for copt in '$(< /proc/cmdline)' |
1317 |
> > ++ [[ root == \g\e\n\t\o\o ]] |
1318 |
> > ++ for copt in '$(< /proc/cmdline)' |
1319 |
> > ++ [[ init == \g\e\n\t\o\o ]] |
1320 |
> > ++ for copt in '$(< /proc/cmdline)' |
1321 |
> > ++ [[ ramdisk == \g\e\n\t\o\o ]] |
1322 |
> > ++ for copt in '$(< /proc/cmdline)' |
1323 |
> > ++ [[ real_root == \g\e\n\t\o\o ]] |
1324 |
> > ++ for copt in '$(< /proc/cmdline)' |
1325 |
> > ++ [[ udev == \g\e\n\t\o\o ]] |
1326 |
> > ++ return 1 |
1327 |
> > ++ get_bootparam configprofile |
1328 |
> > ++ local x copt params retval=1 |
1329 |
> > ++ [[ ! -r /proc/cmdline ]] |
1330 |
> > < /proc/cmdline |
1331 |
> > ++ for copt in '$(< /proc/cmdline)' |
1332 |
> > ++ [[ root == \g\e\n\t\o\o ]] |
1333 |
> > ++ for copt in '$(< /proc/cmdline)' |
1334 |
> > ++ [[ init == \g\e\n\t\o\o ]] |
1335 |
> > ++ for copt in '$(< /proc/cmdline)' |
1336 |
> > ++ [[ ramdisk == \g\e\n\t\o\o ]] |
1337 |
> > ++ for copt in '$(< /proc/cmdline)' |
1338 |
> > ++ [[ real_root == \g\e\n\t\o\o ]] |
1339 |
> > ++ for copt in '$(< /proc/cmdline)' |
1340 |
> > ++ [[ udev == \g\e\n\t\o\o ]] |
1341 |
> > ++ return 1 |
1342 |
> > ++ [[ yes == \y\e\s ]] |
1343 |
> > ++ [[ -n default ]] |
1344 |
> > ++ [[ -d /etc/runlevels/boot.default ]] |
1345 |
> > ++ [[ -L /etc/runlevels/boot.default ]] |
1346 |
> > ++ [[ -z '' ]] |
1347 |
> > ++ [[ -f /var/lib/init.d/softlevel ]] |
1348 |
> > < "${svcdir}/softlevel" |
1349 |
> > ++ export SOFTLEVEL=default |
1350 |
> > ++ SOFTLEVEL=default |
1351 |
> > ++ return 0 |
1352 |
> > ++ [[ -n /etc/init.d/functions.sh ]] |
1353 |
> > ++ [[ /usr/bin/revdep-rebuild != \/\s\b\i\n\/\r\c ]] |
1354 |
> > ++ declare -r BOOTLEVEL DEFAULTLEVEL SOFTLEVEL |
1355 |
> > |
1356 |
> > if [[ -n ${EBUILD} && $* == *depend* ]] ; then |
1357 |
> > # We do not want stty to run during emerge depend |
1358 |
> > COLS=80 |
1359 |
> > else |
1360 |
> > # Setup COLS and ENDCOL so eend can line up the [ ok ] |
1361 |
> > COLS="${COLUMNS:-0}" # bash's internal COLUMNS variable |
1362 |
> > (( COLS == 0 )) && COLS="$(set -- `stty size 2>/dev/null` ; |
1363 |
> > echo "$2")" |
1364 |
> > (( COLS > 0 )) || (( COLS = 80 )) # width of [ ok ] == 7 |
1365 |
> > fi |
1366 |
> > ++ [[ -n '' ]] |
1367 |
> > ++ COLS=0 |
1368 |
> > ++ (( COLS == 0 )) |
1369 |
> > set -- `stty size 2>/dev/null` ; echo "$2" |
1370 |
> > stty size 2>/dev/null |
1371 |
> > ++++ stty size |
1372 |
> > +++ set -- 56 172 |
1373 |
> > +++ echo 172 |
1374 |
> > ++ COLS=172 |
1375 |
> > ++ (( COLS > 0 )) |
1376 |
> > |
1377 |
> > if [[ ${RC_ENDCOL} == "yes" ]] ; then |
1378 |
> > ENDCOL=$'\e[A\e['$(( COLS - 8 ))'C' |
1379 |
> > else |
1380 |
> > ENDCOL='' |
1381 |
> > fi |
1382 |
> > ++ [[ yes == |
1383 |
> > \y\e\s ]] |
1384 |
> > |
1385 |
> > ' |
1386 |
> > ++ ENDCOL=' |
1387 |
> > # Setup the colors so our messages all look pretty |
1388 |
> > if [[ ${RC_NOCOLOR} == "yes" ]] ; then |
1389 |
> > unset GOOD WARN BAD NORMAL HILITE BRACKET |
1390 |
> > else |
1391 |
> > GOOD=$'\e[32;01m' |
1392 |
> > WARN=$'\e[33;01m' |
1393 |
> > BAD=$'\e[31;01m' |
1394 |
> > HILITE=$'\e[36;01m' |
1395 |
> > BRACKET=$'\e[34;01m' |
1396 |
> > NORMAL=$'\e[0m' |
1397 |
> > fi |
1398 |
> > ++ [[ no == \y\e\s ]] |
1399 |
> > ++ GOOD='' |
1400 |
> > ++ WARN='' |
1401 |
> > ++ BAD='' |
1402 |
> > ++ HILITE='' |
1403 |
> > ++ BRACKET='' |
1404 |
> > ++ NORMAL='' |
1405 |
> > |
1406 |
> > |
1407 |
> > ######################################################################### |
1408 |
> >##### # |
1409 |
> > # |
1410 |
> > # *** END LAST CODE *** |
1411 |
> > # |
1412 |
> > # |
1413 |
> > # |
1414 |
> > # This should be the last code in here, please add all functions above!! |
1415 |
> > # |
1416 |
> > # |
1417 |
> > # |
1418 |
> > |
1419 |
> > ######################################################################### |
1420 |
> >##### |
1421 |
> > |
1422 |
> > |
1423 |
> > # vim:ts=4 |
1424 |
> > + normalize_emerge_opts |
1425 |
> > + EMERGE_OPTIONS=(${EMERGE_OPTIONS[@]/%-p/--pretend}) |
1426 |
> > + EMERGE_OPTIONS=(${EMERGE_OPTIONS[@]/%-f/--fetchonly}) |
1427 |
> > + EMERGE_OPTIONS=(${EMERGE_OPTIONS[@]/%-f/--verbose}) |
1428 |
> > + [[ '' != *--pretend* ]] |
1429 |
> > + [[ 0 -ne 0 ]] |
1430 |
> > + setup_portage |
1431 |
> > portageq envvar PORTAGE_NICENESS |
1432 |
> > ++ portageq envvar PORTAGE_NICENESS |
1433 |
> > + local PORTAGE_NICENESS= |
1434 |
> > portageq envvar ROOT |
1435 |
> > ++ portageq envvar ROOT |
1436 |
> > + PORTAGE_ROOT=/ |
1437 |
> > + [[ -n '' ]] |
1438 |
> > + PORTAGE_ROOT=/ |
1439 |
> > + setup_search_paths_and_masks |
1440 |
> > + local configfile sdir mdir skip_me filter_SEARCH_DIRS |
1441 |
> > + einfo 'Configuring search environment for revdep-rebuild' |
1442 |
> > + einfon 'Configuring search environment for revdep-rebuild\n' |
1443 |
> > + [[ no == \y\e\s ]] |
1444 |
> > + [[ yes != \y\e\s ]] |
1445 |
> > + echo -ne ' * Configuring search environment for revdep-rebuild\n' |
1446 |
> > + LAST_E_CMD=einfon |
1447 |
> > + return 0 |
1448 |
> > + LAST_E_CMD=einfo |
1449 |
> > + return 0 |
1450 |
> > unset SEARCH_DIRS; portageq envvar SEARCH_DIRS |
1451 |
> > ++ unset SEARCH_DIRS |
1452 |
> > ++ portageq envvar SEARCH_DIRS |
1453 |
> > + SEARCH_DIRS+=' ' |
1454 |
> > unset SEARCH_DIRS_MASK; portageq envvar SEARCH_DIRS_MASK |
1455 |
> > ++ unset SEARCH_DIRS_MASK |
1456 |
> > ++ portageq envvar SEARCH_DIRS_MASK |
1457 |
> > + SEARCH_DIRS_MASK+=' ' |
1458 |
> > unset LD_LIBRARY_MASK; portageq envvar LD_LIBRARY_MASK |
1459 |
> > ++ unset LD_LIBRARY_MASK |
1460 |
> > ++ portageq envvar LD_LIBRARY_MASK |
1461 |
> > + LD_LIBRARY_MASK+=' ' |
1462 |
> > + [[ -d /etc/revdep-rebuild ]] |
1463 |
> > + for configfile in '/etc/revdep-rebuild/*' |
1464 |
> > . $configfile; echo $SEARCH_DIRS |
1465 |
> > ++ . /etc/revdep-rebuild/60-java |
1466 |
> > # The VM dynamically loads these at runtime so they will end up as |
1467 |
> > missing # but actually work just fine. See for example |
1468 |
> > # https://bugs.gentoo.org/show_bug.cgi?id=152039 |
1469 |
> > # |
1470 |
> > # This file should only have files the are used by things like swt. If |
1471 |
> > there |
1472 |
> > # are "broken" links inside the jre itself, the jre should install it's |
1473 |
> > own # control file. |
1474 |
> > |
1475 |
> > LD_LIBRARY_MASK="libjvm.so libjawt.so" |
1476 |
> > +++ LD_LIBRARY_MASK='libjvm.so libjawt.so' |
1477 |
> > ++ echo |
1478 |
> > + SEARCH_DIRS+=' ' |
1479 |
> > . $configfile; echo $SEARCH_DIRS_MASK |
1480 |
> > ++ . /etc/revdep-rebuild/60-java |
1481 |
> > # The VM dynamically loads these at runtime so they will end up as |
1482 |
> > missing # but actually work just fine. See for example |
1483 |
> > # https://bugs.gentoo.org/show_bug.cgi?id=152039 |
1484 |
> > # |
1485 |
> > # This file should only have files the are used by things like swt. If |
1486 |
> > there |
1487 |
> > # are "broken" links inside the jre itself, the jre should install it's |
1488 |
> > own # control file. |
1489 |
> > |
1490 |
> > LD_LIBRARY_MASK="libjvm.so libjawt.so" |
1491 |
> > +++ LD_LIBRARY_MASK='libjvm.so libjawt.so' |
1492 |
> > ++ echo |
1493 |
> > + SEARCH_DIRS_MASK+=' ' |
1494 |
> > . $configfile; echo $LD_LIBRARY_MASK |
1495 |
> > ++ . /etc/revdep-rebuild/60-java |
1496 |
> > # The VM dynamically loads these at runtime so they will end up as |
1497 |
> > missing # but actually work just fine. See for example |
1498 |
> > # https://bugs.gentoo.org/show_bug.cgi?id=152039 |
1499 |
> > # |
1500 |
> > # This file should only have files the are used by things like swt. If |
1501 |
> > there |
1502 |
> > # are "broken" links inside the jre itself, the jre should install it's |
1503 |
> > own # control file. |
1504 |
> > |
1505 |
> > LD_LIBRARY_MASK="libjvm.so libjawt.so" |
1506 |
> > +++ LD_LIBRARY_MASK='libjvm.so libjawt.so' |
1507 |
> > ++ echo libjvm.so libjawt.so |
1508 |
> > + LD_LIBRARY_MASK+=' libjvm.so libjawt.so' |
1509 |
> > + for configfile in '/etc/revdep-rebuild/*' |
1510 |
> > . $configfile; echo $SEARCH_DIRS |
1511 |
> > ++ . /etc/revdep-rebuild/61-sun-jdk-1.6 |
1512 |
> > SEARCH_DIRS_MASK="/opt/sun-jdk-1.6.0.07" |
1513 |
> > +++ SEARCH_DIRS_MASK=/opt/sun-jdk-1.6.0.07 |
1514 |
> > ++ echo |
1515 |
> > + SEARCH_DIRS+=' ' |
1516 |
> > . $configfile; echo $SEARCH_DIRS_MASK |
1517 |
> > ++ . /etc/revdep-rebuild/61-sun-jdk-1.6 |
1518 |
> > SEARCH_DIRS_MASK="/opt/sun-jdk-1.6.0.07" |
1519 |
> > +++ SEARCH_DIRS_MASK=/opt/sun-jdk-1.6.0.07 |
1520 |
> > ++ echo /opt/sun-jdk-1.6.0.07 |
1521 |
> > + SEARCH_DIRS_MASK+=' /opt/sun-jdk-1.6.0.07' |
1522 |
> > . $configfile; echo $LD_LIBRARY_MASK |
1523 |
> > ++ . /etc/revdep-rebuild/61-sun-jdk-1.6 |
1524 |
> > SEARCH_DIRS_MASK="/opt/sun-jdk-1.6.0.07" |
1525 |
> > +++ SEARCH_DIRS_MASK=/opt/sun-jdk-1.6.0.07 |
1526 |
> > ++ echo libjvm.so libjawt.so |
1527 |
> > + LD_LIBRARY_MASK+=' libjvm.so libjawt.so' |
1528 |
> > + for configfile in '/etc/revdep-rebuild/*' |
1529 |
> > . $configfile; echo $SEARCH_DIRS |
1530 |
> > ++ . /etc/revdep-rebuild/99revdep-rebuild |
1531 |
> > # Default revdep-rebuild configuration file |
1532 |
> > # |
1533 |
> > # revdep-rebuild no longer uses hardcoded paths. To change the default |
1534 |
> > # behavior the following variables can be changed: |
1535 |
> > # |
1536 |
> > # LD_LIBRARY_MASK - Mask of specially evaluated libraries |
1537 |
> > # |
1538 |
> > # SEARCH_DIRS - List of directories to search for executables and |
1539 |
> > libraries # Use this for directories that are not included in PATH |
1540 |
> > or ld.so.conf. |
1541 |
> > # An application should normally not have to set this variable |
1542 |
> > # |
1543 |
> > # SEARCH_DIRS_MASK - List of directories to not search |
1544 |
> > # Use this for directories that should not be searched by |
1545 |
> > revdep-rebuild |
1546 |
> > # This is normally used by binary packages such as openoffice-bin |
1547 |
> > # |
1548 |
> > # Note: This file is sourced using bash by the revdep-rebuild script |
1549 |
> > |
1550 |
> > LD_LIBRARY_MASK="libodbcinst.so libodbc.so libjava.so libjvm.so" |
1551 |
> > +++ LD_LIBRARY_MASK='libodbcinst.so libodbc.so libjava.so libjvm.so' |
1552 |
> > SEARCH_DIRS="/bin /sbin /usr/bin /usr/sbin /lib* /usr/lib*" |
1553 |
> > +++ SEARCH_DIRS='/bin /sbin /usr/bin /usr/sbin /lib* /usr/lib*' |
1554 |
> > SEARCH_DIRS_MASK="/lib*/modules" |
1555 |
> > +++ SEARCH_DIRS_MASK='/lib*/modules' |
1556 |
> > |
1557 |
> > ++ |
1558 |
> > echo /bin /sbin /usr/bin /usr/sbin /lib /lib32 /lib64 /usr/lib /usr/lib32 |
1559 |
> > /usr/lib64 /usr/libexec |
1560 |
> > + |
1561 |
> > SEARCH_DIRS+=' /bin /sbin /usr/bin /usr/sbin /lib /lib32 /lib64 /usr/lib |
1562 |
> > /usr/lib32 /usr/lib64 /usr/libexec' |
1563 |
> > . $configfile; echo $SEARCH_DIRS_MASK |
1564 |
> > ++ . /etc/revdep-rebuild/99revdep-rebuild |
1565 |
> > # Default revdep-rebuild configuration file |
1566 |
> > # |
1567 |
> > # revdep-rebuild no longer uses hardcoded paths. To change the default |
1568 |
> > # behavior the following variables can be changed: |
1569 |
> > # |
1570 |
> > # LD_LIBRARY_MASK - Mask of specially evaluated libraries |
1571 |
> > # |
1572 |
> > # SEARCH_DIRS - List of directories to search for executables and |
1573 |
> > libraries # Use this for directories that are not included in PATH |
1574 |
> > or ld.so.conf. |
1575 |
> > # An application should normally not have to set this variable |
1576 |
> > # |
1577 |
> > # SEARCH_DIRS_MASK - List of directories to not search |
1578 |
> > # Use this for directories that should not be searched by |
1579 |
> > revdep-rebuild |
1580 |
> > # This is normally used by binary packages such as openoffice-bin |
1581 |
> > # |
1582 |
> > # Note: This file is sourced using bash by the revdep-rebuild script |
1583 |
> > |
1584 |
> > LD_LIBRARY_MASK="libodbcinst.so libodbc.so libjava.so libjvm.so" |
1585 |
> > +++ LD_LIBRARY_MASK='libodbcinst.so libodbc.so libjava.so libjvm.so' |
1586 |
> > SEARCH_DIRS="/bin /sbin /usr/bin /usr/sbin /lib* /usr/lib*" |
1587 |
> > +++ SEARCH_DIRS='/bin /sbin /usr/bin /usr/sbin /lib* /usr/lib*' |
1588 |
> > SEARCH_DIRS_MASK="/lib*/modules" |
1589 |
> > +++ SEARCH_DIRS_MASK='/lib*/modules' |
1590 |
> > |
1591 |
> > ++ echo /lib64/modules /lib/modules |
1592 |
> > + SEARCH_DIRS_MASK+=' /lib64/modules /lib/modules' |
1593 |
> > . $configfile; echo $LD_LIBRARY_MASK |
1594 |
> > ++ . /etc/revdep-rebuild/99revdep-rebuild |
1595 |
> > # Default revdep-rebuild configuration file |
1596 |
> > # |
1597 |
> > # revdep-rebuild no longer uses hardcoded paths. To change the default |
1598 |
> > # behavior the following variables can be changed: |
1599 |
> > # |
1600 |
> > # LD_LIBRARY_MASK - Mask of specially evaluated libraries |
1601 |
> > # |
1602 |
> > # SEARCH_DIRS - List of directories to search for executables and |
1603 |
> > libraries # Use this for directories that are not included in PATH |
1604 |
> > or ld.so.conf. |
1605 |
> > # An application should normally not have to set this variable |
1606 |
> > # |
1607 |
> > # SEARCH_DIRS_MASK - List of directories to not search |
1608 |
> > # Use this for directories that should not be searched by |
1609 |
> > revdep-rebuild |
1610 |
> > # This is normally used by binary packages such as openoffice-bin |
1611 |
> > # |
1612 |
> > # Note: This file is sourced using bash by the revdep-rebuild script |
1613 |
> > |
1614 |
> > LD_LIBRARY_MASK="libodbcinst.so libodbc.so libjava.so libjvm.so" |
1615 |
> > +++ LD_LIBRARY_MASK='libodbcinst.so libodbc.so libjava.so libjvm.so' |
1616 |
> > SEARCH_DIRS="/bin /sbin /usr/bin /usr/sbin /lib* /usr/lib*" |
1617 |
> > +++ SEARCH_DIRS='/bin /sbin /usr/bin /usr/sbin /lib* /usr/lib*' |
1618 |
> > SEARCH_DIRS_MASK="/lib*/modules" |
1619 |
> > +++ SEARCH_DIRS_MASK='/lib*/modules' |
1620 |
> > |
1621 |
> > ++ echo libodbcinst.so libodbc.so libjava.so libjvm.so |
1622 |
> > + LD_LIBRARY_MASK+=' libodbcinst.so libodbc.so libjava.so libjvm.so' |
1623 |
> > + [[ -r /etc/profile.env ]] |
1624 |
> > + [[ -s /etc/profile.env ]] |
1625 |
> > . /etc/profile.env; /usr/bin/tr ':' ' ' <<< "$ROOTPATH $PATH" |
1626 |
> > ++ . /etc/profile.env |
1627 |
> > # THIS FILE IS AUTOMATICALLY GENERATED BY env-update. |
1628 |
> > # DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES |
1629 |
> > # GO INTO /etc/profile NOT /etc/profile.env |
1630 |
> > |
1631 |
> > export CLASSPATH='.' |
1632 |
> > +++ export CLASSPATH=. |
1633 |
> > +++ CLASSPATH=. |
1634 |
> > export CONFIG_PROTECT='/var/bind' |
1635 |
> > +++ export CONFIG_PROTECT=/var/bind |
1636 |
> > +++ CONFIG_PROTECT=/var/bind |
1637 |
> > export |
1638 |
> > CONFIG_PROTECT_MASK='/etc/env.d/java/ /etc/php/cli-php5/ext-active/ |
1639 |
> > /etc/php/cgi-php5/ext-active/ /etc/php/apache2-php5/ext-active/ |
1640 |
> > /etc/udev/rules.d /etc/terminfo /etc/ca-certificates.conf |
1641 |
> > /etc/revdep-rebuild' |
1642 |
> > +++ |
1643 |
> > export 'CONFIG_PROTECT_MASK=/etc/env.d/java/ |
1644 |
> > /etc/php/cli-php5/ext-active/ /etc/php/cgi-php5/ext-active/ |
1645 |
> > /etc/php/apache2-php5/ext-active/ |
1646 |
> > /etc/udev/rules.d /etc/terminfo /etc/ca-certificates.conf |
1647 |
> > /etc/revdep-rebuild' |
1648 |
> > +++ |
1649 |
> > CONFIG_PROTECT_MASK='/etc/env.d/java/ /etc/php/cli-php5/ext-active/ |
1650 |
> > /etc/php/cgi-php5/ext-active/ /etc/php/apache2-php5/ext-active/ |
1651 |
> > /etc/udev/rules.d /etc/terminfo /etc/ca-certificates.conf |
1652 |
> > /etc/revdep-rebuild' |
1653 |
> > export CVS_RSH='ssh' |
1654 |
> > +++ export CVS_RSH=ssh |
1655 |
> > +++ CVS_RSH=ssh |
1656 |
> > export GCC_SPECS='' |
1657 |
> > +++ export GCC_SPECS= |
1658 |
> > +++ GCC_SPECS= |
1659 |
> > export |
1660 |
> > |
1661 |
> > INFOPATH='/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2. |
1662 |
> >18/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info' +++ export |
1663 |
> > |
1664 |
> > INFOPATH=/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.1 |
1665 |
> >8/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info +++ |
1666 |
> > |
1667 |
> > INFOPATH=/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.1 |
1668 |
> >8/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info export |
1669 |
> > LANG='hu_HU.UTF-8' |
1670 |
> > +++ export LANG=hu_HU.UTF-8 |
1671 |
> > +++ LANG=hu_HU.UTF-8 |
1672 |
> > export LANGUAGE='hu_HU.UTF-8:hu' |
1673 |
> > +++ export LANGUAGE=hu_HU.UTF-8:hu |
1674 |
> > +++ LANGUAGE=hu_HU.UTF-8:hu |
1675 |
> > export LC_ADDRESS='hu_HU.UTF-8' |
1676 |
> > +++ export LC_ADDRESS=hu_HU.UTF-8 |
1677 |
> > +++ LC_ADDRESS=hu_HU.UTF-8 |
1678 |
> > export LC_ALL='hu_HU.UTF-8' |
1679 |
> > +++ export LC_ALL=hu_HU.UTF-8 |
1680 |
> > +++ LC_ALL=hu_HU.UTF-8 |
1681 |
> > export LC_COLLATE='hu_HU.UTF-8' |
1682 |
> > +++ export LC_COLLATE=hu_HU.UTF-8 |
1683 |
> > +++ LC_COLLATE=hu_HU.UTF-8 |
1684 |
> > export LC_CTYPE='hu_HU.UTF-8' |
1685 |
> > +++ export LC_CTYPE=hu_HU.UTF-8 |
1686 |
> > +++ LC_CTYPE=hu_HU.UTF-8 |
1687 |
> > export LC_IDENTIFICATION='hu_HU.UTF-8' |
1688 |
> > +++ export LC_IDENTIFICATION=hu_HU.UTF-8 |
1689 |
> > +++ LC_IDENTIFICATION=hu_HU.UTF-8 |
1690 |
> > export LC_MEASUREMENT='hu_HU.UTF-8' |
1691 |
> > +++ export LC_MEASUREMENT=hu_HU.UTF-8 |
1692 |
> > +++ LC_MEASUREMENT=hu_HU.UTF-8 |
1693 |
> > export LC_MESSAGES='hu_HU.UTF-8' |
1694 |
> > +++ export LC_MESSAGES=hu_HU.UTF-8 |
1695 |
> > +++ LC_MESSAGES=hu_HU.UTF-8 |
1696 |
> > export LC_MONETARY='hu_HU.UTF-8' |
1697 |
> > +++ export LC_MONETARY=hu_HU.UTF-8 |
1698 |
> > +++ LC_MONETARY=hu_HU.UTF-8 |
1699 |
> > export LC_NAME='hu_HU.UTF-8' |
1700 |
> > +++ export LC_NAME=hu_HU.UTF-8 |
1701 |
> > +++ LC_NAME=hu_HU.UTF-8 |
1702 |
> > export LC_NUMERIC='hu_HU.UTF-8' |
1703 |
> > +++ export LC_NUMERIC=hu_HU.UTF-8 |
1704 |
> > +++ LC_NUMERIC=hu_HU.UTF-8 |
1705 |
> > export LC_PAPER='hu_HU.UTF-8' |
1706 |
> > +++ export LC_PAPER=hu_HU.UTF-8 |
1707 |
> > +++ LC_PAPER=hu_HU.UTF-8 |
1708 |
> > export LC_TELEPHONE='hu_HU.UTF-8' |
1709 |
> > +++ export LC_TELEPHONE=hu_HU.UTF-8 |
1710 |
> > +++ LC_TELEPHONE=hu_HU.UTF-8 |
1711 |
> > export LC_TIME='hu_HU.UTF-8' |
1712 |
> > +++ export LC_TIME=hu_HU.UTF-8 |
1713 |
> > +++ LC_TIME=hu_HU.UTF-8 |
1714 |
> > export LESS='-R -M --shift 5' |
1715 |
> > +++ export 'LESS=-R -M --shift 5' |
1716 |
> > +++ LESS='-R -M --shift 5' |
1717 |
> > export LESSOPEN='|lesspipe.sh %s' |
1718 |
> > +++ export 'LESSOPEN=|lesspipe.sh %s' |
1719 |
> > +++ LESSOPEN='|lesspipe.sh %s' |
1720 |
> > export |
1721 |
> > |
1722 |
> > MANPATH='/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86 |
1723 |
> >_64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/ma |
1724 |
> >n:/etc/java-config/system-vm/man/:/usr/lib64/php5/man/' +++ export |
1725 |
> > |
1726 |
> > MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_ |
1727 |
> >64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man |
1728 |
> >:/etc/java-config/system-vm/man/:/usr/lib64/php5/man/ +++ |
1729 |
> > |
1730 |
> > MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_ |
1731 |
> >64-pc-linux-gnu/2.18/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man |
1732 |
> >:/etc/java-config/system-vm/man/:/usr/lib64/php5/man/ export |
1733 |
> > PAGER='/usr/bin/less' |
1734 |
> > +++ export PAGER=/usr/bin/less |
1735 |
> > +++ PAGER=/usr/bin/less |
1736 |
> > export |
1737 |
> > PATH='/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/usr/games/bin' |
1738 |
> > +++ export |
1739 |
> > PATH=/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/usr/games/bin |
1740 |
> > +++ PATH=/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/usr/games/bin |
1741 |
> > export PYTHONPATH='/usr/lib64/portage/pym' |
1742 |
> > +++ export PYTHONPATH=/usr/lib64/portage/pym |
1743 |
> > +++ PYTHONPATH=/usr/lib64/portage/pym |
1744 |
> > export ROOTPATH='/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2' |
1745 |
> > +++ export ROOTPATH=/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 |
1746 |
> > +++ ROOTPATH=/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 |
1747 |
> > ++ /usr/bin/tr : ' ' |
1748 |
> > + |
1749 |
> > SEARCH_DIRS+=' /opt/bin /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 /opt/bin |
1750 |
> > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 /usr/games/bin' |
1751 |
> > + [[ -r /etc/ld.so.conf ]] |
1752 |
> > + [[ -s /etc/ld.so.conf ]] |
1753 |
> > sed '/^#/d;s/#.*$//' /etc/ld.so.conf |
1754 |
> > ++ sed '/^#/d;s/#.*$//' /etc/ld.so.conf |
1755 |
> > + SEARCH_DIRS+=' /usr/local/lib |
1756 |
> > /lib |
1757 |
> > /usr/lib |
1758 |
> > /lib64 |
1759 |
> > /usr/lib64 |
1760 |
> > /usr/local/lib64 |
1761 |
> > /lib32 |
1762 |
> > /usr/lib32 |
1763 |
> > /usr/local/lib32 |
1764 |
> > /usr/x86_64-pc-linux-gnu/lib |
1765 |
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 |
1766 |
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32 |
1767 |
> > /usr/games/lib |
1768 |
> > /usr/games/lib32 |
1769 |
> > /usr/lib64/libstdc++-v3/' |
1770 |
> > clean_var <<< "$SEARCH_DIRS" |
1771 |
> > ++ clean_var |
1772 |
> > ++ awk 'BEGIN {RS="[[:space:]]"} |
1773 |
> > /-\*/ {exit} |
1774 |
> > /[^[:space:]]/ {gsub(/\/\/+/, "/"); print}' |
1775 |
> > ++ sort -u |
1776 |
> > + SEARCH_DIRS='/bin |
1777 |
> > /lib |
1778 |
> > /lib32 |
1779 |
> > /lib64 |
1780 |
> > /opt/bin |
1781 |
> > /sbin |
1782 |
> > /usr/bin |
1783 |
> > /usr/games/bin |
1784 |
> > /usr/games/lib |
1785 |
> > /usr/games/lib32 |
1786 |
> > /usr/lib |
1787 |
> > /usr/lib32 |
1788 |
> > /usr/lib64 |
1789 |
> > /usr/lib64/libstdc++-v3/ |
1790 |
> > /usr/libexec |
1791 |
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 |
1792 |
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32 |
1793 |
> > /usr/local/lib |
1794 |
> > /usr/local/lib32 |
1795 |
> > /usr/local/lib64 |
1796 |
> > /usr/sbin |
1797 |
> > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 |
1798 |
> > /usr/x86_64-pc-linux-gnu/lib' |
1799 |
> > clean_var <<< "$SEARCH_DIRS_MASK" |
1800 |
> > ++ clean_var |
1801 |
> > ++ awk 'BEGIN {RS="[[:space:]]"} |
1802 |
> > /-\*/ {exit} |
1803 |
> > /[^[:space:]]/ {gsub(/\/\/+/, "/"); print}' |
1804 |
> > ++ sort -u |
1805 |
> > + SEARCH_DIRS_MASK='/lib64/modules |
1806 |
> > /lib/modules |
1807 |
> > /opt/sun-jdk-1.6.0.07' |
1808 |
> > clean_var <<< "$LD_LIBRARY_MASK" |
1809 |
> > ++ clean_var |
1810 |
> > ++ awk 'BEGIN {RS="[[:space:]]"} |
1811 |
> > /-\*/ {exit} |
1812 |
> > /[^[:space:]]/ {gsub(/\/\/+/, "/"); print}' |
1813 |
> > ++ sort -u |
1814 |
> > + LD_LIBRARY_MASK='libjava.so |
1815 |
> > libjawt.so |
1816 |
> > libjvm.so |
1817 |
> > libodbcinst.so |
1818 |
> > libodbc.so' |
1819 |
> > + for sdir in '${SEARCH_DIRS}' |
1820 |
> > + skip_me= |
1821 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1822 |
> > + [[ /bin == /lib64/modules/* ]] |
1823 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1824 |
> > + [[ /bin == /lib/modules/* ]] |
1825 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1826 |
> > + [[ /bin == /opt/sun-jdk-1.6.0.07/* ]] |
1827 |
> > + [[ -n '' ]] |
1828 |
> > + filter_SEARCH_DIRS+=' /bin' |
1829 |
> > + for sdir in '${SEARCH_DIRS}' |
1830 |
> > + skip_me= |
1831 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1832 |
> > + [[ /lib == /lib64/modules/* ]] |
1833 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1834 |
> > + [[ /lib == /lib/modules/* ]] |
1835 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1836 |
> > + [[ /lib == /opt/sun-jdk-1.6.0.07/* ]] |
1837 |
> > + [[ -n '' ]] |
1838 |
> > + filter_SEARCH_DIRS+=' /lib' |
1839 |
> > + for sdir in '${SEARCH_DIRS}' |
1840 |
> > + skip_me= |
1841 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1842 |
> > + [[ /lib32 == /lib64/modules/* ]] |
1843 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1844 |
> > + [[ /lib32 == /lib/modules/* ]] |
1845 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1846 |
> > + [[ /lib32 == /opt/sun-jdk-1.6.0.07/* ]] |
1847 |
> > + [[ -n '' ]] |
1848 |
> > + filter_SEARCH_DIRS+=' /lib32' |
1849 |
> > + for sdir in '${SEARCH_DIRS}' |
1850 |
> > + skip_me= |
1851 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1852 |
> > + [[ /lib64 == /lib64/modules/* ]] |
1853 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1854 |
> > + [[ /lib64 == /lib/modules/* ]] |
1855 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1856 |
> > + [[ /lib64 == /opt/sun-jdk-1.6.0.07/* ]] |
1857 |
> > + [[ -n '' ]] |
1858 |
> > + filter_SEARCH_DIRS+=' /lib64' |
1859 |
> > + for sdir in '${SEARCH_DIRS}' |
1860 |
> > + skip_me= |
1861 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1862 |
> > + [[ /opt/bin == /lib64/modules/* ]] |
1863 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1864 |
> > + [[ /opt/bin == /lib/modules/* ]] |
1865 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1866 |
> > + [[ /opt/bin == /opt/sun-jdk-1.6.0.07/* ]] |
1867 |
> > + [[ -n '' ]] |
1868 |
> > + filter_SEARCH_DIRS+=' /opt/bin' |
1869 |
> > + for sdir in '${SEARCH_DIRS}' |
1870 |
> > + skip_me= |
1871 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1872 |
> > + [[ /sbin == /lib64/modules/* ]] |
1873 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1874 |
> > + [[ /sbin == /lib/modules/* ]] |
1875 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1876 |
> > + [[ /sbin == /opt/sun-jdk-1.6.0.07/* ]] |
1877 |
> > + [[ -n '' ]] |
1878 |
> > + filter_SEARCH_DIRS+=' /sbin' |
1879 |
> > + for sdir in '${SEARCH_DIRS}' |
1880 |
> > + skip_me= |
1881 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1882 |
> > + [[ /usr/bin == /lib64/modules/* ]] |
1883 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1884 |
> > + [[ /usr/bin == /lib/modules/* ]] |
1885 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1886 |
> > + [[ /usr/bin == /opt/sun-jdk-1.6.0.07/* ]] |
1887 |
> > + [[ -n '' ]] |
1888 |
> > + filter_SEARCH_DIRS+=' /usr/bin' |
1889 |
> > + for sdir in '${SEARCH_DIRS}' |
1890 |
> > + skip_me= |
1891 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1892 |
> > + [[ /usr/games/bin == /lib64/modules/* ]] |
1893 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1894 |
> > + [[ /usr/games/bin == /lib/modules/* ]] |
1895 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1896 |
> > + [[ /usr/games/bin == /opt/sun-jdk-1.6.0.07/* ]] |
1897 |
> > + [[ -n '' ]] |
1898 |
> > + filter_SEARCH_DIRS+=' /usr/games/bin' |
1899 |
> > + for sdir in '${SEARCH_DIRS}' |
1900 |
> > + skip_me= |
1901 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1902 |
> > + [[ /usr/games/lib == /lib64/modules/* ]] |
1903 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1904 |
> > + [[ /usr/games/lib == /lib/modules/* ]] |
1905 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1906 |
> > + [[ /usr/games/lib == /opt/sun-jdk-1.6.0.07/* ]] |
1907 |
> > + [[ -n '' ]] |
1908 |
> > + filter_SEARCH_DIRS+=' /usr/games/lib' |
1909 |
> > + for sdir in '${SEARCH_DIRS}' |
1910 |
> > + skip_me= |
1911 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1912 |
> > + [[ /usr/games/lib32 == /lib64/modules/* ]] |
1913 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1914 |
> > + [[ /usr/games/lib32 == /lib/modules/* ]] |
1915 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1916 |
> > + [[ /usr/games/lib32 == /opt/sun-jdk-1.6.0.07/* ]] |
1917 |
> > + [[ -n '' ]] |
1918 |
> > + filter_SEARCH_DIRS+=' /usr/games/lib32' |
1919 |
> > + for sdir in '${SEARCH_DIRS}' |
1920 |
> > + skip_me= |
1921 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1922 |
> > + [[ /usr/lib == /lib64/modules/* ]] |
1923 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1924 |
> > + [[ /usr/lib == /lib/modules/* ]] |
1925 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1926 |
> > + [[ /usr/lib == /opt/sun-jdk-1.6.0.07/* ]] |
1927 |
> > + [[ -n '' ]] |
1928 |
> > + filter_SEARCH_DIRS+=' /usr/lib' |
1929 |
> > + for sdir in '${SEARCH_DIRS}' |
1930 |
> > + skip_me= |
1931 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1932 |
> > + [[ /usr/lib32 == /lib64/modules/* ]] |
1933 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1934 |
> > + [[ /usr/lib32 == /lib/modules/* ]] |
1935 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1936 |
> > + [[ /usr/lib32 == /opt/sun-jdk-1.6.0.07/* ]] |
1937 |
> > + [[ -n '' ]] |
1938 |
> > + filter_SEARCH_DIRS+=' /usr/lib32' |
1939 |
> > + for sdir in '${SEARCH_DIRS}' |
1940 |
> > + skip_me= |
1941 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1942 |
> > + [[ /usr/lib64 == /lib64/modules/* ]] |
1943 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1944 |
> > + [[ /usr/lib64 == /lib/modules/* ]] |
1945 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1946 |
> > + [[ /usr/lib64 == /opt/sun-jdk-1.6.0.07/* ]] |
1947 |
> > + [[ -n '' ]] |
1948 |
> > + filter_SEARCH_DIRS+=' /usr/lib64' |
1949 |
> > + for sdir in '${SEARCH_DIRS}' |
1950 |
> > + skip_me= |
1951 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1952 |
> > + [[ /usr/lib64/libstdc++-v3/ == /lib64/modules/* ]] |
1953 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1954 |
> > + [[ /usr/lib64/libstdc++-v3/ == /lib/modules/* ]] |
1955 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1956 |
> > + [[ /usr/lib64/libstdc++-v3/ == /opt/sun-jdk-1.6.0.07/* ]] |
1957 |
> > + [[ -n '' ]] |
1958 |
> > + filter_SEARCH_DIRS+=' /usr/lib64/libstdc++-v3/' |
1959 |
> > + for sdir in '${SEARCH_DIRS}' |
1960 |
> > + skip_me= |
1961 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1962 |
> > + [[ /usr/libexec == /lib64/modules/* ]] |
1963 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1964 |
> > + [[ /usr/libexec == /lib/modules/* ]] |
1965 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1966 |
> > + [[ /usr/libexec == /opt/sun-jdk-1.6.0.07/* ]] |
1967 |
> > + [[ -n '' ]] |
1968 |
> > + filter_SEARCH_DIRS+=' /usr/libexec' |
1969 |
> > + for sdir in '${SEARCH_DIRS}' |
1970 |
> > + skip_me= |
1971 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1972 |
> > + [[ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 == /lib64/modules/* ]] |
1973 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1974 |
> > + [[ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 == /lib/modules/* ]] |
1975 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1976 |
> > + [[ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 == /opt/sun-jdk-1.6.0.07/* ]] |
1977 |
> > + [[ -n '' ]] |
1978 |
> > + filter_SEARCH_DIRS+=' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2' |
1979 |
> > + for sdir in '${SEARCH_DIRS}' |
1980 |
> > + skip_me= |
1981 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1982 |
> > + [[ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32 == /lib64/modules/* ]] |
1983 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1984 |
> > + [[ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32 == /lib/modules/* ]] |
1985 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1986 |
> > + [[ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32 == /opt/sun-jdk-1.6.0.07/* |
1987 |
> > ]] |
1988 |
> > + [[ -n '' ]] |
1989 |
> > + filter_SEARCH_DIRS+=' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32' |
1990 |
> > + for sdir in '${SEARCH_DIRS}' |
1991 |
> > + skip_me= |
1992 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1993 |
> > + [[ /usr/local/lib == /lib64/modules/* ]] |
1994 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1995 |
> > + [[ /usr/local/lib == /lib/modules/* ]] |
1996 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
1997 |
> > + [[ /usr/local/lib == /opt/sun-jdk-1.6.0.07/* ]] |
1998 |
> > + [[ -n '' ]] |
1999 |
> > + filter_SEARCH_DIRS+=' /usr/local/lib' |
2000 |
> > + for sdir in '${SEARCH_DIRS}' |
2001 |
> > + skip_me= |
2002 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2003 |
> > + [[ /usr/local/lib32 == /lib64/modules/* ]] |
2004 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2005 |
> > + [[ /usr/local/lib32 == /lib/modules/* ]] |
2006 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2007 |
> > + [[ /usr/local/lib32 == /opt/sun-jdk-1.6.0.07/* ]] |
2008 |
> > + [[ -n '' ]] |
2009 |
> > + filter_SEARCH_DIRS+=' /usr/local/lib32' |
2010 |
> > + for sdir in '${SEARCH_DIRS}' |
2011 |
> > + skip_me= |
2012 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2013 |
> > + [[ /usr/local/lib64 == /lib64/modules/* ]] |
2014 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2015 |
> > + [[ /usr/local/lib64 == /lib/modules/* ]] |
2016 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2017 |
> > + [[ /usr/local/lib64 == /opt/sun-jdk-1.6.0.07/* ]] |
2018 |
> > + [[ -n '' ]] |
2019 |
> > + filter_SEARCH_DIRS+=' /usr/local/lib64' |
2020 |
> > + for sdir in '${SEARCH_DIRS}' |
2021 |
> > + skip_me= |
2022 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2023 |
> > + [[ /usr/sbin == /lib64/modules/* ]] |
2024 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2025 |
> > + [[ /usr/sbin == /lib/modules/* ]] |
2026 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2027 |
> > + [[ /usr/sbin == /opt/sun-jdk-1.6.0.07/* ]] |
2028 |
> > + [[ -n '' ]] |
2029 |
> > + filter_SEARCH_DIRS+=' /usr/sbin' |
2030 |
> > + for sdir in '${SEARCH_DIRS}' |
2031 |
> > + skip_me= |
2032 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2033 |
> > + [[ /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 == /lib64/modules/* ]] |
2034 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2035 |
> > + [[ /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 == /lib/modules/* ]] |
2036 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2037 |
> > + [[ /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 == /opt/sun-jdk-1.6.0.07/* ]] |
2038 |
> > + [[ -n '' ]] |
2039 |
> > + filter_SEARCH_DIRS+=' /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2' |
2040 |
> > + for sdir in '${SEARCH_DIRS}' |
2041 |
> > + skip_me= |
2042 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2043 |
> > + [[ /usr/x86_64-pc-linux-gnu/lib == /lib64/modules/* ]] |
2044 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2045 |
> > + [[ /usr/x86_64-pc-linux-gnu/lib == /lib/modules/* ]] |
2046 |
> > + for mdir in '${SEARCH_DIRS_MASK}' |
2047 |
> > + [[ /usr/x86_64-pc-linux-gnu/lib == /opt/sun-jdk-1.6.0.07/* ]] |
2048 |
> > + [[ -n '' ]] |
2049 |
> > + filter_SEARCH_DIRS+=' /usr/x86_64-pc-linux-gnu/lib' |
2050 |
> > clean_var <<< "${filter_SEARCH_DIRS}" |
2051 |
> > ++ clean_var |
2052 |
> > ++ awk 'BEGIN {RS="[[:space:]]"} |
2053 |
> > /-\*/ {exit} |
2054 |
> > /[^[:space:]]/ {gsub(/\/\/+/, "/"); print}' |
2055 |
> > ++ sort -u |
2056 |
> > + SEARCH_DIRS='/bin |
2057 |
> > /lib |
2058 |
> > /lib32 |
2059 |
> > /lib64 |
2060 |
> > /opt/bin |
2061 |
> > /sbin |
2062 |
> > /usr/bin |
2063 |
> > /usr/games/bin |
2064 |
> > /usr/games/lib |
2065 |
> > /usr/games/lib32 |
2066 |
> > /usr/lib |
2067 |
> > /usr/lib32 |
2068 |
> > /usr/lib64 |
2069 |
> > /usr/lib64/libstdc++-v3/ |
2070 |
> > /usr/libexec |
2071 |
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 |
2072 |
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32 |
2073 |
> > /usr/local/lib |
2074 |
> > /usr/local/lib32 |
2075 |
> > /usr/local/lib64 |
2076 |
> > /usr/sbin |
2077 |
> > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 |
2078 |
> > /usr/x86_64-pc-linux-gnu/lib' |
2079 |
> > + [[ -n /bin |
2080 |
> > /lib |
2081 |
> > /lib32 |
2082 |
> > /lib64 |
2083 |
> > /opt/bin |
2084 |
> > /sbin |
2085 |
> > /usr/bin |
2086 |
> > /usr/games/bin |
2087 |
> > /usr/games/lib |
2088 |
> > /usr/games/lib32 |
2089 |
> > /usr/lib |
2090 |
> > /usr/lib32 |
2091 |
> > /usr/lib64 |
2092 |
> > /usr/lib64/libstdc++-v3/ |
2093 |
> > /usr/libexec |
2094 |
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 |
2095 |
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32 |
2096 |
> > /usr/local/lib |
2097 |
> > /usr/local/lib32 |
2098 |
> > /usr/local/lib64 |
2099 |
> > /usr/sbin |
2100 |
> > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 |
2101 |
> > /usr/x86_64-pc-linux-gnu/lib ]] |
2102 |
> > + get_search_env |
2103 |
> > + local new_env |
2104 |
> > + local old_env |
2105 |
> > python -c 'import os; import pwd; print pwd.getpwuid(os.getuid())[0]' |
2106 |
> > ++ python -c 'import os; import pwd; print pwd.getpwuid(os.getuid())[0]' |
2107 |
> > + local uid=root |
2108 |
> > + [[ root == \r\o\o\t ]] |
2109 |
> > + local tmp_target=/var/cache/revdep-rebuild |
2110 |
> > + verify_tmpdir /var/cache/revdep-rebuild root |
2111 |
> > + umask 007 |
2112 |
> > + [[ ! -n /var/cache/revdep-rebuild ]] |
2113 |
> > + [[ -d /var/cache/revdep-rebuild ]] |
2114 |
> > find "$1" -type d ! \( -user $2 -perm -0700 \) |
2115 |
> > ++ find /var/cache/revdep-rebuild -type d '!' '(' -user root -perm -0700 |
2116 |
> > ')' |
2117 |
> > ++ hash find |
2118 |
> > type -P find |
2119 |
> > +++ type -P find |
2120 |
> > ++ local testsubject=/usr/bin/find |
2121 |
> > command find "$testsubject" -executable 2> /dev/null |
2122 |
> > +++ command find /usr/bin/find -executable |
2123 |
> > ++ [[ -n /usr/bin/find ]] |
2124 |
> > ++ unset -f find |
2125 |
> > ++ find /var/cache/revdep-rebuild -type d '!' '(' -user root -perm -0700 |
2126 |
> > ')' |
2127 |
> > + [[ -n '' ]] |
2128 |
> > + cd /var/cache/revdep-rebuild |
2129 |
> > + builtin cd -P /var/cache/revdep-rebuild |
2130 |
> > + [[ /var/cache/revdep-rebuild != /var/mnt/cache/revdep-rebuild ]] |
2131 |
> > + die 1 'Working directory expected to be /var/cache/revdep-rebuild, but |
2132 |
> > it is /var/mnt/cache/revdep-rebuild' |
2133 |
> > + local status=1 |
2134 |
> > + shift |
2135 |
> > + eerror 'Working directory expected to be /var/cache/revdep-rebuild, but |
2136 |
> > it |
2137 |
> > is /var/mnt/cache/revdep-rebuild' |
2138 |
> > + [[ no == \y\e\s ]] |
2139 |
> > + [[ yes != \y\e\s ]] |
2140 |
> > + echo -e ' * Working directory expected to be /var/cache/revdep-rebuild, |
2141 |
> > but |
2142 |
> > it is /var/mnt/cache/revdep-rebuild' |
2143 |
> > + local name=rc-scripts |
2144 |
> > + [[ /usr/bin/revdep-rebuild != \/\s\b\i\n\/\r\u\n\s\c\r\i\p\t\.\s\h ]] |
2145 |
> > + name=revdep-rebuild |
2146 |
> > + esyslog daemon.err rc-scripts 'Working directory expected to |
2147 |
> > be /var/cache/revdep-rebuild, but it is /var/mnt/cache/revdep-rebuild' |
2148 |
> > + local pri= |
2149 |
> > + local tag= |
2150 |
> > + [[ -x /usr/bin/logger ]] |
2151 |
> > + pri=daemon.err |
2152 |
> > + tag=rc-scripts |
2153 |
> > + shift 2 |
2154 |
> > + [[ -z Working directory expected to be /var/cache/revdep-rebuild, but |
2155 |
> > it is /var/mnt/cache/revdep-rebuild ]] |
2156 |
> > + /usr/bin/logger -p daemon.err -t rc-scripts -- 'Working directory |
2157 |
> > expected |
2158 |
> > to be /var/cache/revdep-rebuild, but it is /var/mnt/cache/revdep-rebuild' |
2159 |
> > + return 0 |
2160 |
> > + LAST_E_CMD=eerror |
2161 |
> > + return 0 |
2162 |
> > + exit 1 |