summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-05-26 17:37:34 +0200
committerAaron Griffin <aaron@archlinux.org>2006-05-26 17:37:34 +0200
commite75dd3b57c247e650277f26f4f1b5ade3bd0f620 (patch)
tree895660dd0ea459172c1a55106758a1449c5df975
parent364ae8f8d07b2e349f192ecfa02985db783803d0 (diff)
downloadmkinitcpio-e75dd3b57c247e650277f26f4f1b5ade3bd0f620.tar.gz
mkinitcpio-e75dd3b57c247e650277f26f4f1b5ade3bd0f620.tar.xz
Moved udev hook/install to udev package
Added destination name for add_binary git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@116 880c04e9-e011-0410-abf7-b926e227c9cd
-rw-r--r--functions4
-rw-r--r--hooks/udev7
-rw-r--r--install/udev26
3 files changed, 2 insertions, 35 deletions
diff --git a/functions b/functions
index beb4a3e..715b555 100644
--- a/functions
+++ b/functions
@@ -155,10 +155,10 @@ add_binary ()
case "${type}" in
*script*)
msg " adding '${type}' script, ensure proper interp exists..."
- add_file "${bin}"
+ add_file "${bin}" "${2}"
;;
*executable*)
- add_file "${bin}"
+ add_file "${bin}" "${2}"
#note, this will also handle 'not a dynamic executable' spit out by
# static binaries... the deps will produce nothing
for lib in $(ldd ${bin} 2>/dev/null | sed "s|.*=>\(.*\)|\1|"); do
diff --git a/hooks/udev b/hooks/udev
deleted file mode 100644
index fc4c814..0000000
--- a/hooks/udev
+++ /dev/null
@@ -1,7 +0,0 @@
-# vim: set ft=sh:
-run_hook ()
-{
- msg -n ":: Loading udev..."
- /etc/start_udev
- msg "done."
-}
diff --git a/install/udev b/install/udev
deleted file mode 100644
index e4fdc67..0000000
--- a/install/udev
+++ /dev/null
@@ -1,26 +0,0 @@
-# vim:set ft=sh:
-
-install ()
-{
- MODULES=""
- BINARIES=""
- FILES=" /etc/udev/udev.conf"
- SCRIPT="udev"
- add_file /lib/initcpio/udev/udevd /sbin/udevd
- add_file /lib/initcpio/udev/udevtrigger /sbin/udevtrigger
- add_file /lib/initcpio/udev/udevsettle /sbin/udevsettle
- add_file /lib/initcpio/udev/udev.rules /etc/udev/rules.d/udev.rules
- add_file /lib/initcpio/udev/start_udev /etc/start_udev
- add_file /lib/initcpio/udev/modalias_ieee1394 /lib/udev/modalias_ieee1394
- add_file /lib/initcpio/udev/firmware_helper /lib/udev/firmware_helper
- add_file /lib/initcpio/udev/cdrom_id /lib/udev/cdrom_id
-}
-
-help ()
-{
-cat <<HELPEOF
- This hook will use udev to create your root device node
- and detect the needed modules for your root device.
- It is recommended to use this hook instead of modload.
-HELPEOF
-}