From ea20a441f8fecc9fa84e0e1f12c4b71bf436f872 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Fri, 21 Apr 2006 23:00:28 +0000 Subject: Hook updates and changes... git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@7 880c04e9-e011-0410-abf7-b926e227c9cd --- hooks/base | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 hooks/base (limited to 'hooks/base') diff --git a/hooks/base b/hooks/base new file mode 100644 index 0000000..706fb85 --- /dev/null +++ b/hooks/base @@ -0,0 +1,9 @@ +# vim:set ft=sh: +run_hook () +{ + if [ -e "/sys/bus/pci" ]; then + msg -n "Loading base modules..." + /bin/modprobe -a -q $(/bin/cat /sys/bus/pci/devices/*/modalias) >/dev/null 2>&1 & + msg "done." + fi +} -- cgit v1.2.3-24-g4f1b