slackbuilds_ponce/system/mlocate/mlocate-run-updatedb
B. Watson 18ce54101f
system/mlocate: Added (locate/updatedb implementation).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2019-12-28 08:55:52 +07:00

4 lines
138 B
Bash

#!/bin/sh
nodevs=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" && $2 != "zfs" { print $2 }')
/usr/bin/updatedb -f "$nodevs"