packages: mlocate/mlocate.cron - more portable
glen
glen at pld-linux.org
Tue Mar 22 09:00:10 CET 2011
Author: glen Date: Tue Mar 22 08:00:10 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- more portable
---- Files affected:
packages/mlocate:
mlocate.cron (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/mlocate/mlocate.cron
diff -u packages/mlocate/mlocate.cron:1.2 packages/mlocate/mlocate.cron:1.3
--- packages/mlocate/mlocate.cron:1.2 Thu Mar 25 17:00:30 2010
+++ packages/mlocate/mlocate.cron Tue Mar 22 09:00:04 2011
@@ -1,5 +1,5 @@
#!/bin/sh
-nodevs=$(< /proc/filesystems awk '$1 == "nodev" { print $2 }')
+nodevs=$(awk '$1 == "nodev" { print $2 }' /proc/filesystems)
renice +19 -p $$ >/dev/null 2>&1
ionice -c2 -n7 -p $$ >/dev/null 2>&1
exec /usr/bin/updatedb -f "$nodevs"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mlocate/mlocate.cron?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list