S99kernel

Synopsys


#
# Adding drivers for older kernel/OS releases
#

Script


# Whitebox needs a kernel with IEEE1394 (firewire) drivers

if [ "$OS" == "rhel3" ]; then
  echo "%Post: Installing kernel update and modules"
  rpm -U /mnt/source/kickstart/rpms/kernel/kernel-2.4.21-27.0.2.EL.i686.rpm
  rpm -U /mnt/source/kickstart/rpms/kernel/kernel-unsupported-2.4.21-27.0.2.EL.i686.rpm
# We need to fix the module loads 
cat >>/etc/modules.conf <<EOF
alias ieee1394-controller ohci1394
options sbp2 sbp2_exclusive_login=0
post-install sbp2 insmod sd_mod
post-install sbp2 insmod ohci1394
post-remove sbp2 rmmod sd_mod
EOF

cat >>/etc/rc.d/rc.local <<EOF
# --- $VERSION fix
# With a disk shared between machines we need to tell the machine
# to rescane the SCSI-bus offered by the firewire to see the disk
echo "scsi add-single-device 0 0 0 0" > /proc/scsi/scsi
EOF
fi

Examples and Testing





Marked up in XHTML - ©2005 Thoughtful Solutions Ltd.