diff options
-rwxr-xr-x | liveinit | 4 | ||||
-rwxr-xr-x | make_slackware_live.sh | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -196,6 +196,7 @@ for ARG in $(cat /proc/cmdline); do # nga: no glamor 2d acceleration. # tpb: trackpoint scrolling while pressing middle mouse button. # syn: start synaptics daemon and extend X.Org capabilities. + # ssh: start SSH daemon (disabled by default). TWEAKS=$(echo $ARG | cut -f2 -d=) ;; tz=*) @@ -967,6 +968,9 @@ Section "InputClass" Option "VertEdgeScroll" "1" EndSection EOT + elif [ "$TWEAK" = "ssh" ]; then + # Enable SSH daemon (disabled by default for security reasons): + chmod +x /mnt/overlay/etc/rc.d/rc.sshd fi done # End Tweaks. diff --git a/make_slackware_live.sh b/make_slackware_live.sh index a7724e5..81b96ea 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1461,11 +1461,12 @@ fi # Configure the default runlevel: sed -i ${LIVE_ROOTDIR}/etc/inittab -e "s/\(id:\).\(:initdefault:\)/\1${RUNLEVEL}\2/" -# Disable unneeded services: +# Disable unneeded/unwanted services: [ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.acpid ] && chmod -x ${LIVE_ROOTDIR}/etc/rc.d/rc.acpid [ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.pcmcia ] && chmod -x ${LIVE_ROOTDIR}/etc/rc.d/rc.pcmcia [ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.pulseaudio ] && chmod -x ${LIVE_ROOTDIR}/etc/rc.d/rc.pulseaudio [ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.yp ] && chmod -x ${LIVE_ROOTDIR}/etc/rc.d/rc.yp +[ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.sshd ] && chmod -x ${LIVE_ROOTDIR}/etc/rc.d/rc.sshd # But enable NFS client support: [ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.rpc ] && chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.rpc |