summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2021-01-12 17:14:59 +0100
committer Eric Hameleers <alien@slackware.com>2021-01-12 17:14:59 +0100
commitca9704c956144f191de680a269df847721dc7a91 (patch)
tree22462071d80e3b73ae3cdeb7d86a954bd2ce7321 /make_slackware_live.sh
parentbbff28ea2ad0c1d36cef175dbaf1c221925fb965 (diff)
downloadliveslak-ca9704c956144f191de680a269df847721dc7a91.tar.gz
liveslak-ca9704c956144f191de680a269df847721dc7a91.tar.xz
XFCE: start CUPS only if cupsd is installed
Diffstat (limited to '')
-rwxr-xr-xmake_slackware_live.sh8
1 files 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,