2009-03-28 17:49:03 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2010-11-30 15:33:19 +00:00
|
|
|
# Read system defaults.
|
|
|
|
if [ -r /etc/updatedb.conf ]; then
|
|
|
|
. /etc/updatedb.conf
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -n "$PRUNEFS" ]; then
|
|
|
|
args="$args --prunefs='$PRUNEFS'"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -n "$PRUNEPATHS" ]; then
|
|
|
|
args="$args --prunepaths='$PRUNEPATHS'"
|
|
|
|
fi
|
|
|
|
|
2009-03-28 17:49:03 +00:00
|
|
|
# Update the "locate" database
|
|
|
|
if [ -x /usr/bin/updatedb ]; then
|
2010-11-30 15:33:19 +00:00
|
|
|
/usr/bin/updatedb ${args}
|
2009-03-28 17:49:03 +00:00
|
|
|
fi
|