Last change
on this file since 387 was 347, checked in by Rick van der Zwet, 13 years ago |
Else it matches files like Muttrc.dist as well :-)
|
-
Property svn:executable
set to
*
|
File size:
620 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # Small snippet of code used to detect which proceses
|
---|
3 | #_really_ needs a re-start after upgrade
|
---|
4 | #
|
---|
5 | # Licence: BSDLike - http://rickvanderzwet.nl/LICENSE
|
---|
6 | # Rick van der Zwet <info@rickvanderzwet.nl>
|
---|
7 |
|
---|
8 | TMPFILE=`basename $0 .sh`
|
---|
9 | TMPFILE=`mktemp -t $TMPFILE`
|
---|
10 |
|
---|
11 | pkg_version -vIL= | awk '{print $1}' > $TMPFILE
|
---|
12 |
|
---|
13 | if [ ! -s $TMPFILE ]; then
|
---|
14 | exit 0
|
---|
15 | fi
|
---|
16 |
|
---|
17 | SIZE=0
|
---|
18 | NEWSIZE=1
|
---|
19 |
|
---|
20 | while [ $NEWSIZE -gt $SIZE ]; do
|
---|
21 | SIZE=`cat $TMPFILE | wc -l`
|
---|
22 | pkg_info -qR `cat $TMPFILE` >> $TMPFILE
|
---|
23 | sort -u -o $TMPFILE $TMPFILE
|
---|
24 | NEWSIZE=`cat $TMPFILE | wc -l`
|
---|
25 | done
|
---|
26 |
|
---|
27 | pkg_info -L `cat $TMPFILE` | grep -F '/rc.d/'
|
---|
28 |
|
---|
29 |
|
---|
30 | rm -f $TMPFILE
|
---|
Note:
See
TracBrowser
for help on using the repository browser.