summaryrefslogtreecommitdiffstats
path: root/initrd/distro-specs/suse/functions-default
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-07-15 13:22:25 +0200
committerDirk von Suchodoletz2006-07-15 13:22:25 +0200
commit8496797591fe6c68608209fa6884f1e5a42b4588 (patch)
treec87ee23db9f3de6f0aeea2007e70bc6fad037019 /initrd/distro-specs/suse/functions-default
parentAdded "fileget" configuration (via tftp from ~/tftpboot/client-config/*), (diff)
downloadcore-8496797591fe6c68608209fa6884f1e5a42b4588.tar.gz
core-8496797591fe6c68608209fa6884f1e5a42b4588.tar.xz
core-8496797591fe6c68608209fa6884f1e5a42b4588.zip
Trying on fix for #65 (different handling of kbd settings for SuSE
distros), minor other fixes and additions ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@281 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/distro-specs/suse/functions-default')
-rw-r--r--initrd/distro-specs/suse/functions-default14
1 files changed, 6 insertions, 8 deletions
diff --git a/initrd/distro-specs/suse/functions-default b/initrd/distro-specs/suse/functions-default
index eacc5b5d..2c45ff94 100644
--- a/initrd/distro-specs/suse/functions-default
+++ b/initrd/distro-specs/suse/functions-default
@@ -29,8 +29,8 @@ export no_proxy" > /mnt/etc/SuSEconfig/profile
echo -e "DXS VERSION = 4.0a\nINITRAMFS GENERATION DATE = $date" \
>> /mnt/etc/SuSE-release
# add the halt link to the 0 and 6 runlevel directories
- ln -sf ../halt /mnt/etc/${D_INITDIR}/rc0.d/S20halt
- ln -sf ../halt /mnt/etc/${D_INITDIR}/rc6.d/S20reboot
+ln -sf ../halt /mnt/etc/${D_INITDIR}/rc0.d/S20halt
+ln -sf ../halt /mnt/etc/${D_INITDIR}/rc6.d/S20reboot
# if YaST2 should be runnable (without much effect anyway) on the client
testmkd /mnt/var/log/YaST2
}
@@ -347,15 +347,13 @@ cp /etc/bluetooth /mnt/etc/${D_SYSCONFDIR}/bluetooth
}
# set up keytable (function run in hwautocfg)
+# kbd runlevel link is set via config_distro to avoid clashes between
+# servconfig and hwautocfg settings
keytable () {
-# remove unneeded components from the startscript
-sed -e "/wanted keytable/,/^fi$/d;/load usb drivers/,/^esac$/d" \
- -i /mnt/etc/${D_INITDIR}/kbd
sed -e "s,KEYTABLE=.*,KEYTABLE=\"${KEYTABLE}\"," \
-i /mnt/etc/${D_SYSCONFDIR}/keyboard
-# just ensure that keytable is initialized before xdm starts
-ln -sf /etc/${D_INITDIR}/kbd /mnt/etc/${D_INITBOOTD}/S01kbd
-ln -sf /etc/${D_INITDIR}/kbd /mnt/etc/${D_INITBOOTD}/K20kbd
+echo -e "\tloadkeys ${KEYTABLE} >${LOGFILE} 2>&1\n" \
+ >>/mnt/etc/${D_INITDIR}/boot.ld
}
# consolefont and language (function run in hwautocfg)