diff options
Diffstat (limited to 'initramfs/distro-specs/suse/functions-10.1')
-rw-r--r-- | initramfs/distro-specs/suse/functions-10.1 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/initramfs/distro-specs/suse/functions-10.1 b/initramfs/distro-specs/suse/functions-10.1 index 424819e6..aa553a2d 100644 --- a/initramfs/distro-specs/suse/functions-10.1 +++ b/initramfs/distro-specs/suse/functions-10.1 @@ -132,6 +132,24 @@ case "${XMODULE}" in esac } +# secure shell service +config_sshd () { +if [ "x$start_sshd" = "xyes" ] ; then + if [ -f /mnt/etc/${D_INITDIR}/sshd ] ; then + testmkd /mnt/var/lib/sshd + testmkd /mnt/var/lib/empty + if ! strinfile "sshd:" /mnt/etc/passwd ; then + echo -e "sshd:x:71:65::/var/run/sshd:/bin/false" \ + >>/mnt/etc/passwd + echo -e "sshd:!:13099:0:99999:7:::" >>/mnt/etc/shadow + fi + rllinker "sshd" 25 10 + else + error "$df_errsshd" nonfatal + fi +fi +} + # Xorg variable settings. Lots of stuff changes for newer Xorg servers displayvars () { synapticsdrv="/usr/X11R6/lib/modules/input/synaptics_drv.o" |