Kaydet (Commit) f898474f authored tarafından sulincix's avatar sulincix

debian uyumluluğu

üst 6402bf7e
......@@ -14,8 +14,12 @@ if [ -x /xbin/udevd -a -x /xbin/udevadm ] && [ "$noudev" != "true" ]; then
vgchange --sysinit --activate y >/dev/null 2>&1
else
warn "Eudev not found or disabled"
debug "Listing kernel modules"
find /lib/modules/ | sed "s/.*\///g" | grep "\.ko" | sed "s/.ko.*/ &/g" | sed "s/^/modprobe /g"> /load_modules.sh
cd /lib/modules/*
find crypto lib block ata md firewire scsi \
message pcmcia virtio host storage \
-type f 2> /dev/null | sed "s/.*\///g" | grep "\.ko" | sed "s/.ko.*/ &/g" | sed "s/^/modprobe /g"> /load_modules.sh
msg "Trying to load kernel modules"
sh /load_modules.sh &>/dev/null
fi
......@@ -124,9 +124,13 @@ classic_boot(){
}
wait_device(){
msg "Waiting for $device"
while [ ! -b "$device" ] ; do
tmp=$(mktemp)
rm -f $tmp
mkdir $tmp
while ! mount -t auto -o defaults,ro $root $tmp ; do
sleep 0.1
done
umount -lf $tmp
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment