summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
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!