Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 41fb13435b1b56f32e3878e3ef818d21 > files > 5

ltsp-client-5.1.87-1mdv2010.0.i586.rpm

# /etc/sysconfig/mkinitrd configuration directs mkinitrd to generate a netboot capable image
# initrd obtains from netboot the IP address and rootfs type 
unset MODESETTING
for name in modesetting drm; do
    if [ -e /lib/modules/`ls /boot/vmlinuz-* |sed 's/vmlinuz-//' | sort -nr | head -n1 | xargs basename`/modules.$name ]; then
        MODESETTING=$name
        break 
    fi
done
if [ -n "$MODESETTING" ]; then
    # F10+ has modesetting drivers, include them if they exist
    availmodules="=networking =$MODESETTING"
else
    availmodules="=networking"
fi
# exclude wireless drivers because they cannot netboot, and they can often cause boot problems because of missing firmware
excludemodules="rtl8187 iwl3945 iwlcore iwl4965 p54pci p54common p54usb zd1201 netwave_cs atmel zd1211rw hermes wl3501_cs rtl8180 libertas_cs libertas usb8xxx libertas_sdio spectrum_cs b43 airo_cs orinoco_nortel b43legacy atmel_pci mac80211_hwsim adm8211 hostap hostap_cs hostap_pci hostap_plx ipw2200 rndis_wlan orinoco_pci orinoco_plx orinoco_tmd orinoco airo at76_usb wavelan_cs ipw2100 rt2500usb rt61pci rt73usb rt2400pci rt2x00lib rt2x00usb rt2x00pci rt2500pci orinoco_cs ath5k atmel_cs prism54"
NET_LIST="eth0"
# These parameters are overridden by root="dhcp" in newer versions of mkinitrd
rootfs="nfs"
rootdev="192.168.0.254:/opt/ltsp/i386"
rootopts="noatime,dhcp"
BOOTPROTO="dhcp"
# This option is recognized only by newer mkinitrd, but it doesn't harm older versions.
root="dhcp"