summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/bin/hwautocfg
diff options
context:
space:
mode:
authorMichael Janczyk2010-04-06 20:01:24 +0200
committerMichael Janczyk2010-04-06 20:01:24 +0200
commite437b8813f2a84ccffa3a75ba1f534b38ce72b9c (patch)
treefcc8c42ec290da4f343797d4eee4c03087fd01df /initramfs/stage3-stuff/bin/hwautocfg
parentAdding the runlevel linker again (having the upstart component for newer (diff)
downloadcore-e437b8813f2a84ccffa3a75ba1f534b38ce72b9c.tar.gz
core-e437b8813f2a84ccffa3a75ba1f534b38ce72b9c.tar.xz
core-e437b8813f2a84ccffa3a75ba1f534b38ce72b9c.zip
cumulative commit of local branch, many changes regarding virtualization
Diffstat (limited to 'initramfs/stage3-stuff/bin/hwautocfg')
-rwxr-xr-xinitramfs/stage3-stuff/bin/hwautocfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg
index 9cd0f8a4..fee54a16 100755
--- a/initramfs/stage3-stuff/bin/hwautocfg
+++ b/initramfs/stage3-stuff/bin/hwautocfg
@@ -29,7 +29,9 @@ echo "0 0 0 0" >/proc/sys/kernel/printk
echo "/sbin/mdev" >/proc/sys/kernel/hotplug
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" | \
+# save results for later info and for Xen plugin when starting Xen VM
+hwinfo --netcard --usb-ctrl >/etc/hwinfo.netcard-usbctrl
+grep modprobe /etc/hwinfo.netcard-usbctrl | 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