summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/suse/functions-10.0
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/distro-specs/suse/functions-10.0')
-rw-r--r--initramfs/distro-specs/suse/functions-10.017
1 files changed, 17 insertions, 0 deletions
diff --git a/initramfs/distro-specs/suse/functions-10.0 b/initramfs/distro-specs/suse/functions-10.0
index 79e1043c..b67df02b 100644
--- a/initramfs/distro-specs/suse/functions-10.0
+++ b/initramfs/distro-specs/suse/functions-10.0
@@ -34,6 +34,23 @@ PROGRAM=\"/var/X11R6/bin/vm-udev\", OPTIONS=\"ignore_device\"\n\
SUBSYSTEM==\"usb\", ACTION==\"remove\", PROGRAM=\"/var/X11R6/bin/vm-udev\"" \
>> /mnt/etc/udev/rules.d/01-udev-vm.rules
}
+# 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"