diff options
Diffstat (limited to 'system/mlocate/mlocate-run-updatedb')
-rw-r--r-- | system/mlocate/mlocate-run-updatedb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/system/mlocate/mlocate-run-updatedb b/system/mlocate/mlocate-run-updatedb new file mode 100644 index 0000000000000..7d3f2ac52677f --- /dev/null +++ b/system/mlocate/mlocate-run-updatedb @@ -0,0 +1,4 @@ +#!/bin/sh + +nodevs=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" && $2 != "zfs" { print $2 }') +/usr/bin/updatedb -f "$nodevs" |