summaryrefslogtreecommitdiffstats
path: root/ide-auto
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-04-25 07:41:53 +0200
committerAaron Griffin <aaron@archlinux.org>2006-04-25 07:41:53 +0200
commit7b6b2316bde86f21d44fdd3b5b3da5284c1bbdd1 (patch)
tree6eeefb0bc9e2b7e424213a109a71e2961aa4c435 /ide-auto
parent97004aa82d44c0fc90c1b0b49a796cc9b1927032 (diff)
downloadmkinitcpio-7b6b2316bde86f21d44fdd3b5b3da5284c1bbdd1.tar.gz
mkinitcpio-7b6b2316bde86f21d44fdd3b5b3da5284c1bbdd1.tar.xz
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@10 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'ide-auto')
-rw-r--r--ide-auto35
1 files changed, 0 insertions, 35 deletions
diff --git a/ide-auto b/ide-auto
deleted file mode 100644
index eb728b1..0000000
--- a/ide-auto
+++ /dev/null
@@ -1,35 +0,0 @@
-# vim: set ft=sh:
-
-install ()
-{
- MODULES=""
- for m in $(auto_modules | grep "/ide/");
- do
- MODULES="$MODULES $(basename $m)"
- done
- BINARIES=""
- FILES=""
-}
-
-run_hook ()
-{
- if [ -e /proc/ide ]; then
- msg -n "Loading ide modules..."
- /bin/modprobe -q ide-generic >/dev/null 2>&1
- for d in /proc/ide/*; do
- unit=${d#/proc/ide/}
- if [ -e "${d}/media" -a ! -d "/sys/block/${unit}" ]; then
- read m < "${d}/media"
- case "${m}" in
- disk) /bin/modprobe -q ide-disk >/dev/null 2>&1;;
- cdrom) /bin/modprobe -q ide-cd >/dev/null 2>&1;;
- tape) /bin/modprobe -q ide-tape >/dev/null 2>&1;;
- floppy) /bin/modprobe -q ide-floppy >/dev/null 2>&1;;
- esac
- fi
- done
- msg "done"
- else
- err "no ide devices detected..."
- fi
-}