diff options
| author | Dirk von Suchodoletz | 2006-03-25 17:17:31 +0100 |
|---|---|---|
| committer | Dirk von Suchodoletz | 2006-03-25 17:17:31 +0100 |
| commit | 494d472f83758f41e6f38b9b63fc42e79c5d3635 (patch) | |
| tree | f327c3626bc159e9316476abec2b53d6201a1a46 /initrd/initrd-stuff/bin | |
| parent | move vm-mount into InitRD, heavy cleanups in initial ramdisk (diff) | |
| download | core-494d472f83758f41e6f38b9b63fc42e79c5d3635.tar.gz core-494d472f83758f41e6f38b9b63fc42e79c5d3635.tar.xz core-494d472f83758f41e6f38b9b63fc42e79c5d3635.zip | |
ensured "ash" compatibility, minor fixes and cleanups, ...
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@128 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/bin')
| -rwxr-xr-x | initrd/initrd-stuff/bin/hwautocfg | 9 | ||||
| -rwxr-xr-x | initrd/initrd-stuff/bin/screenres | 2 | ||||
| -rwxr-xr-x | initrd/initrd-stuff/bin/servconfig | 19 |
3 files changed, 17 insertions, 13 deletions
diff --git a/initrd/initrd-stuff/bin/hwautocfg b/initrd/initrd-stuff/bin/hwautocfg index 526e59b6..bc9ffd11 100755 --- a/initrd/initrd-stuff/bin/hwautocfg +++ b/initrd/initrd-stuff/bin/hwautocfg @@ -181,9 +181,8 @@ for section in Files ServerFlags Module InputDevice Monitor \ sed -e "s,XMODULE,${XMODULE}," -e "s%XDESC%${XDESC}%" >>$xfc # special options may be needed for some drivers [ $DEBUGLEVEL -gt 1 ] && msg "X setup" \ -"adding for some Xfree86 modules \ -(radeon, s3virge, nvidia) special options to\nthe 'Device' section. Consult \ -hwsetup if you like to add more or remove some." +"adding for some Xfree86 modules (radeon, s3virge, nvidia) special\noptions \ +to the 'Device' section. Consult hwsetup if you like to add more or\nremove some." [ x$DRV = "xs3virge" ] && { echo -e "\tOption\t\t\"XVideo\" \"Off\"\n" >>$xfc [ $DEBUGLEVEL -gt 1 ] && msg "X setup" \ @@ -279,10 +278,10 @@ modprobe ${MODPRV} usbcore & # "drivers" (pseudo, placeholder strings, ...) to exclude from loading # depending on distro more hw modules have to be excluded too. use the # D_HWMODTOIGNORE for that purpose -DRIVERLIST=" disabled unknown ignore pcspkr synaptics keybdev\ +DRIVERLIST=" disabled unknown ignore pcspkr synaptics keybdev kanotix\ ${D_HWMODTOIGNORE} " # driver blacklist (real modules which fail to load) -DRIVERLIST=${DRIVERLIST}"hw_random kanotix genericwheelusb " +DRIVERLIST=${DRIVERLIST}"hw_random genericwheelusb " # hack for pseudo modules (not to load) for i in $DRIVERLIST ; do echo -e "alias\t$i\tusbcore" >> /etc/modprobe.conf diff --git a/initrd/initrd-stuff/bin/screenres b/initrd/initrd-stuff/bin/screenres index 8a04f40a..ad263ae9 100755 --- a/initrd/initrd-stuff/bin/screenres +++ b/initrd/initrd-stuff/bin/screenres @@ -62,7 +62,7 @@ fi echo " ($tft_probability)" # Find the lines with two times 3 to 4 digits delimited by an x. Print with the two values reverted, so sort sorts w.r.t the 2nd value. Then swap back -screen_resolutions=`sed -n '/edid/I,$s/.*[ \t]\([0-9]\{3,4\}\) *x *\([0-9]\{3,4\}\).*/\2 x \1/p' ${tmp_ddcprobe_output}| sort -r -n | uniq| sed -n 's/\([0-9]\{3,4\}\) x \([0-9]\{3,4\}\).*/"\2x\1"/p' ` +screen_resolutions=`sed -n '/edid/I,$s/.*[ \t]\([0-9]\{3,4\}\) *x *\([0-9]\{3,4\}\).*/\2 x \1/p' ${tmp_ddcprobe_output}| sort -rn | sort -rnu | sed -n 's/\([0-9]\{3,4\}\) x \([0-9]\{3,4\}\).*/"\2x\1"/p' ` screen_resolutions=`echo $screen_resolutions` echo "Supported Screen Modes: $screen_resolutions" diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig index 6de5ba48..2be55ba7 100755 --- a/initrd/initrd-stuff/bin/servconfig +++ b/initrd/initrd-stuff/bin/servconfig @@ -192,19 +192,24 @@ config_snmp 24 02 # create needed directories and files if [ "x$vmware" != "x" ] || [ "x$vmware" != "xno" ] ; then # in the future other types of sources besides NFS should be supported - mount -t nfs -o ro,nolock,intr,nodev,soft,timeo=2,nosuid \ - ${imgsrv} /mnt/${vmdir} & + for i in /var/lib/vmware /etc/vmware/vmnet1 /etc/vmware/vmnet8 \ + /var/run/vmware ; do + testmkd /mnt/$i + done + # mount the vmware image source or link it (compatibility to ver. 3) + if [ -d /mnt/usr/share/vmware ] ; then + ln -sf /usr/share/vmware /var/lib/vmware + elif [ -n "${imgsrv}" ] ; then + mount -t nfs -o ro,nolock,intr,nodev,soft,timeo=2,nosuid \ + ${imgsrv} /mnt/var/lib/vmware & + fi # generate a runlevel script - d_mkrlscript init vmware-prep "Starting preparation of vmware environment" + d_mkrlscript init vmware-prep 'Starting preparation of vmware environment' sed "s,^#.*,,;/^$/d;s,^,\t," /etc/vmware-prep >> \ /mnt/etc/${D_INITDIR}/vmware-prep d_mkrlscript close vmware-prep "" chmod u+x /mnt/etc/${D_INITDIR}/vmware-prep config_vmware - for i in /var/lib/vmware /etc/vmware/vmnet1 /etc/vmware/vmnet8 \ - /var/run/vmware ; do - testmkd /mnt/$i - done chmod 1777 /mnt/var/run/vmware rm /mnt/etc/vmware/not_configured 2>/dev/null # define a variable where gdm/kdm should look for additional sessions |
