From 369664e824586c6b044872d9d2e80f7fad12c13d Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 19 Mar 2017 14:44:19 +0100 Subject: make_slackware_live.sh: use right 'locate' binary when generating cache --- make_slackware_live.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/make_slackware_live.sh b/make_slackware_live.sh index dac27eb..6643fa0 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1866,7 +1866,12 @@ rm -f ${LIVE_ROOTDIR}/root/.bash* # Create a locate cache: echo "-- Creating locate cache, takes a few seconds..." -chroot ${LIVE_ROOTDIR} /etc/cron.daily/slocate 2>${DBGOUT} +if [ -x ${LIVE_ROOTDIR}/etc/cron.daily/mlocate ]; then + LOCATE_BIN=mlocate +else + LOCATE_BIN=slocate +fi +chroot ${LIVE_ROOTDIR} /etc/cron.daily/${LOCATE_BIN} 2>${DBGOUT} # ----------------------------------------------------------------------------- # Done with configuring the live system! -- cgit v1.2.3