summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/bin/hwautocfg
diff options
context:
space:
mode:
authorMichael Janczyk2010-02-10 19:51:13 +0100
committerMichael Janczyk2010-02-10 19:51:13 +0100
commit241308c00efb3ea2f1bf3c4f41c5cdaaeb001b77 (patch)
tree21c25273506059df01f7834fbfa90e5586f88336 /initramfs/stage3-stuff/bin/hwautocfg
parentMerge branch 'master' of git@openslx.org:openslx/core (diff)
downloadcore-241308c00efb3ea2f1bf3c4f41c5cdaaeb001b77.tar.gz
core-241308c00efb3ea2f1bf3c4f41c5cdaaeb001b77.tar.xz
core-241308c00efb3ea2f1bf3c4f41c5cdaaeb001b77.zip
hack to enable loading of virtio_net after virtio_pci, maybe nex time via modules.dep
Diffstat (limited to 'initramfs/stage3-stuff/bin/hwautocfg')
-rwxr-xr-xinitramfs/stage3-stuff/bin/hwautocfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg
index 0bfbdd2c..9cd0f8a4 100755
--- a/initramfs/stage3-stuff/bin/hwautocfg
+++ b/initramfs/stage3-stuff/bin/hwautocfg
@@ -31,6 +31,10 @@ modprobe -a ${MODPRV} usbhid hid-bright 2>/dev/null &
nwcardlist=$(echo ${slxconf_listnwmod}|sed "s/\ /|/g")
hwinfo --netcard --usb-ctrl | grep modprobe | grep -E "$nwcardlist|hcd" | \
grep -v ehci | sed 's/.* Cmd: "//;s/"//' | sort -u >/etc/modprobe.base
+# virtio hack
+if [ $(grep -ic "virtio_pci" /etc/modprobe.base) -ge 1 ]; then
+ echo "modprobe virtio_net" >>/etc/modprobe.base
+fi
ash /etc/modprobe.base; mdev -s
# optimization possible: exclude network and usb base drivers from the
# following list (bios detection for non-hwautocfg component)