Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 249377 Details for
Bug 218024
sys-apps/readahead-list init script file need update for openrc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
readahead-collect
readahead-collect (text/plain), 1.58 KB, created by
Siuchung Cheung (Clement)
on 2010-10-02 23:48:38 UTC
(
hide
)
Description:
readahead-collect
Filename:
MIME Type:
Creator:
Siuchung Cheung (Clement)
Created:
2010-10-02 23:48:38 UTC
Size:
1.58 KB
patch
obsolete
>#!/bin/bash > >source /etc/conf.d/readahead-list > >exclude_files=( > /sbin/auditd > /etc/init.d/auditd > /etc/audit/ > /var/log/audit > /lib64/rc/init.d/daemons/auditd > /etc/conf.d/auditd > /sbin/auditctl > /var/run > /var/tmp > /tmp >) > >declare -A seen_file > >function file_exclude >{ > for exclude in ${exclude_files[@]}; do > if [[ $1 =~ $exclude ]]; then > return 0 > fi > done > > return 1 >} > >function get_path >{ > if [[ ${1:0:1} == '/' ]]; then > real_file=`realpath $1 2>/dev/null` > else > real_file=`realpath $2/$1 2>/dev/null` > fi > > if [[ -n $real_file ]] && > ! file_exclude $real_file && > ! (( ${seen_file[$real_file]} )); then > echo $real_file > seen_file[$real_file]=1 > fi >} > >function proc_lines >{ > while read line; do > if [[ $line =~ .*name=(.*)\ inode=.* ]]; then > file=${BASH_REMATCH[1]} > continue > fi > if [[ $line =~ .*cwd=(.*) ]]; then > cwd=${BASH_REMATCH[1]} > continue > fi > if [[ $line =~ .*exe=(.*)\ key=.* ]]; then > exe=${BASH_REMATCH[1]} > if [[ $exe == '/sbin/rc' && $line =~ .*comm=bootmisc\ exe=.* ]]; then > return > fi > continue > fi > if [[ $line == '----' && -n $file ]]; then > get_path $file $cwd > get_path $exe $cwd > unset file > unset cwd > unset exe > unset comm > fi > done >} > >function proc_list >{ > echo "Prossing early list into $READAHEAD_LIST_runlevel_boot" > proc_lines early > $READAHEAD_LIST_runlevel_boot > echo "Prossing main list into $READAHEAD_LIST_runlevel_default" > proc_lines main > $READAHEAD_LIST_runlevel_default >} > >ausearch -i -k bootup | proc_list
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 218024
:
157363
|
157365
|
168928
|
238355
|
238361
|
239903
| 249377