diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-04-20 22:46:09 +0200 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-04-20 22:46:09 +0200 |
commit | 56326bb6b78eacc92b71e55a28974bf335396644 (patch) | |
tree | b7e70ba2247f9d44ee6afa8353ea094231b78577 /init | |
parent | fb2046ba69906fc3c019cebb12e33f645eafefd1 (diff) | |
download | mkinitcpio-56326bb6b78eacc92b71e55a28974bf335396644.tar.gz mkinitcpio-56326bb6b78eacc92b71e55a28974bf335396644.tar.xz |
usage() addition, output fixes
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@3 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'init')
-rw-r--r-- | init | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -17,6 +17,7 @@ for cmd in $CMDLINE; do esac done +#this should be part of the 'base' hook msg -n "Loading pci modules..." /bin/modprobe -a -q $(/bin/cat /sys/bus/pci/devices/*/modalias) >/dev/null 2>&1 & msg "done." @@ -38,9 +39,11 @@ if [ -e "/hooks" ]; then eval "TST=\$${h}" if [ "${TST}" != "disabled" ]; then run_hook () { msg "$h: no run function defined"; } - . $h - msg ":: Running Hook [${h##*/}]" - run_hook + if [ -e "/hooks/$h" ]; then + . $h + msg ":: Running Hook [${h}]" + run_hook + fi fi done fi @@ -71,4 +74,5 @@ if [ "${break}" = "y" ]; then fi # Optimize fs type loop for mounting rootfs +msg ":: End Initramfs - control passing to kinit" exec /bin/kinit rootfstype=${FSTYPE} $CMDLINE < /dev/console > /dev/console |