]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - config/findutils/updatedb
core125: Ship glibc for i586
[people/pmueller/ipfire-2.x.git] / config / findutils / updatedb
1 #!/bin/bash
2
3 [ -x "/usr/bin/updatedb" ] || exit 0
4
5 LOCKFILE="/var/lib/locate/updatedb.lock"
6
7 trap "rm -f $LOCKFILE" EXIT
8
9 if [ -e "$LOCKFILE" ]; then
10 echo >&2 "Warning: $LOCKFILE present, not running updatedb."
11 exit 1
12 else
13 touch "$LOCKFILE"
14 fi
15
16 /usr/bin/updatedb