summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-03-19 14:44:19 +0100
committer Eric Hameleers <alien@slackware.com>2017-03-19 14:44:19 +0100
commit369664e824586c6b044872d9d2e80f7fad12c13d (patch)
tree4f5da0b72510ec883907d6639ec7ff990852c20b /make_slackware_live.sh
parent68f844991995943f27d01ca5da2e6e6c90d91915 (diff)
downloadliveslak-369664e824586c6b044872d9d2e80f7fad12c13d.tar.gz
liveslak-369664e824586c6b044872d9d2e80f7fad12c13d.tar.xz
make_slackware_live.sh: use right 'locate' binary when generating cache
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh7
1 files changed, 6 insertions, 1 deletions
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!