From ca9704c956144f191de680a269df847721dc7a91 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 12 Jan 2021 17:14:59 +0100 Subject: XFCE: start CUPS only if cupsd is installed --- make_slackware_live.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 7138a82..32832c5 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -2766,8 +2766,12 @@ sed -i ${LIVE_ROOTDIR}/etc/inittab -e "s/\(id:\).\(:initdefault:\)/\1${RUNLEVEL} # But enable NFS client support and CUPS: [ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.rpc ] && chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.rpc -[ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.cups ] && chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.cups -[ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.cups-browsed ] && chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.cups-browsed +if [ -x ${LIVE_ROOTDIR}/usr/sbin/cupsd ] && [ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.cups ]; then + chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.cups +fi +if [ -x ${LIVE_ROOTDIR}/usr/sbin/cupsd ] && [ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.cups-browsed ]; then + chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.cups-browsed +fi # Add a softvol pre-amp to ALSA - some computers have too low volumes. # If etc/asound.conf exists it's configuring ALSA to use Pulse, -- cgit v1.2.3