summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/bin/hwautocfg
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-01-31 20:11:02 +0100
committerDirk von Suchodoletz2007-01-31 20:11:02 +0100
commit1ad51ac519e7afc970a5ddf991c9141e140bf7f3 (patch)
tree2b35cf904a5e029ee2da9a355976a47d7c6ab670 /initramfs/initrd-stuff/bin/hwautocfg
parentUse the right variable name of the existing path. (diff)
downloadcore-1ad51ac519e7afc970a5ddf991c9141e140bf7f3.tar.gz
core-1ad51ac519e7afc970a5ddf991c9141e140bf7f3.tar.xz
core-1ad51ac519e7afc970a5ddf991c9141e140bf7f3.zip
Fixed slow stage3 in higher debuglevels (sleep -> usleep in
/etc/functions) Heavy rewrite of base scripts init/hwautocfg/servconfig. Moved lots of stuff from hwautocfg to init and servconfig to get a cleaner structure (do not wait for processes of init or servconfig in hwautocfg) Cleanup started, old codefragments will be removed soon ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@661 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/bin/hwautocfg')
-rwxr-xr-xinitramfs/initrd-stuff/bin/hwautocfg53
1 files changed, 26 insertions, 27 deletions
diff --git a/initramfs/initrd-stuff/bin/hwautocfg b/initramfs/initrd-stuff/bin/hwautocfg
index ba164cd8..45758c71 100755
--- a/initramfs/initrd-stuff/bin/hwautocfg
+++ b/initramfs/initrd-stuff/bin/hwautocfg
@@ -91,6 +91,13 @@ local DRI='\tGroup\t\t"video"\n
# displayvars may overwrite the above settings
displayvars
+# run localizator and configure X11 keyboard
+localization "${country}"
+if [ -z "${XKEYBOARD}" ] ; then
+ error "$hcfg_keyb" nonfatal
+ XKEYBOARD="de"
+fi
+
# check if hardware definition variables are set and overwrite autodetected
# values
if [ -n "$hw_graphic" ] ; then
@@ -406,14 +413,6 @@ cfgcomplete
. /etc/machine-setup
[ $DEBUGLEVEL -eq 21 ] && echo "** finished waiting for config at $(sysup)"
-# run localizator and configure keyboard and console fonts
-DEFKEYTABLE="de-latin1-nodeadkeys"
-localization $country
-if [ -z "${KEYTABLE}" ] ; then
- error "$hcfg_keyb" nonfatal
- KEYTABLE=${DEFKEYTABLE}
-fi
-
# run X11 / Xorg configurator if no xorg.conf file was provided by
# ConfigTGZ (check for /rootfs/${D_XF86CONFFILE#/mnt})
if [ -f /rootfs${D_XF86CONFFILE#/mnt} ] ; then
@@ -463,27 +462,27 @@ done
# wait for completion of clients root filesystem in /mnt and add
# previously generated files to /mnt/etc ...
-[ $DEBUGLEVEL -eq 21 ] && \
- echo -e "** if you did not run hwautocfg in background and exited the \n\
-debug shell, expect to wait from now on a while ..."
-waitfor /tmp/fscmpl 40000
-[ -f /tmp/fstab ] && cat /tmp/fstab >> /mnt/etc/fstab
-[ -f /tmp/scanner-udev ] && cat /tmp/scanner-udev \
- >> /mnt/etc/udev/rules.d/04-scanner.rules
+#[ $DEBUGLEVEL -eq 21 ] && \
+# echo -e "** if you did not run hwautocfg in background and exited the \n\
+#debug shell, expect to wait from now on a while ..."
+#waitfor /tmp/fscmpl 40000
+#[ -f /tmp/fstab ] && cat /tmp/fstab >> /mnt/etc/fstab
+#[ -f /tmp/scanner-udev ] && cat /tmp/scanner-udev \
+# >> /mnt/etc/udev/rules.d/04-scanner.rules
# add entries to initialize keytable and consolefont to boot.ld
# postpone some commands into normal bootup environment
-echo -e "\t# entries added by $0: $date" >> /mnt/etc/${D_INITDIR}/boot.ld
-[ -n "${KEYTABLE}" ] && keytable
-[ -n "${CONSOLE_FONT}" ] && consolefont
+#echo -e "\t# entries added by $0: $date" >> /mnt/etc/${D_INITDIR}/boot.ld
+#[ -n "${KEYTABLE}" ] && keytable
+#[ -n "${CONSOLE_FONT}" ] && consolefont
# finalize X configuration XBinPath contains pointer of to X binary
# in /var/X11R6/bin/X - only needed if var is set
-displayvars
-if [ -n $XBinPath ] ; then
- testmkd /mnt/var/X11R6/bin
- ln -sf $XBinPath /mnt/var/X11R6/bin/X
-fi
+#displayvars
+#if [ -n $XBinPath ] ; then
+# testmkd /mnt/var/X11R6/bin
+# ln -sf $XBinPath /mnt/var/X11R6/bin/X
+#fi
# if any new device appeared up to now
if [ -x /bin/mdev ] ; then
mdev -s &
@@ -492,12 +491,12 @@ if [ -x /bin/mdev ] ; then
fi
# wait for completion of Xorg configuration
-waitfor /tmp/xready 20000
-cp /etc/xorg.conf ${D_XF86CONFFILE}
+#waitfor /tmp/xready 20000
+#cp /etc/xorg.conf ${D_XF86CONFFILE}
# do not finish until tmp is setup properly
-[ -n "$part44" ] && waitfor /tmp/tmpready 20000
-
+#[ -n "$part44" ] && waitfor /tmp/tmpready 20000
+# not needed --> servconfig waits for it!
# script run timer or debug information
[ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 21 ] && \