projects
/
platform
/
upstream
/
rpm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
upgrade rpm version to 4.14.1
[platform/upstream/rpm.git]
/
scripts
/
sysvinitdeps.sh
1
#!/bin/sh
2
3
[ "$1" = '-P' -o "$1" = '--provides' ] || {
4
cat > /dev/null
5
exit 0
6
}
7
8
while read file; do
9
case $file in
10
*/etc/init.d/*)
11
provs=`grep '^# *Provides:' $file | sed 's,^.*:,,'`
12
for p in $provs; do
13
echo "sysvinit($p)"
14
done
15
;;
16
esac
17
done