source: pkg/main/initramfs-tools/trunk/hooks/udevhelper @ 2683

Revision 2683, 604 bytes checked in by alanbach-guest, 7 years ago (diff)
  • Sync'd with Debian 0.91c
  • Added TuxOnIce? support
  • Property svn:executable set to *
Line 
1#!/bin/sh
2# FIXME: kill after lenny release
3# needed for UUID root and partial etch upgrades
4#
5PREREQ="udev"
6
7prereqs()
8{
9        echo "$PREREQ"
10}
11
12case $1 in
13# get pre-requisites
14prereqs)
15        prereqs
16        exit 0
17        ;;
18esac
19
20. /usr/share/initramfs-tools/hook-functions
21
22# should never happen
23if [ ! -e $DESTDIR/lib/udev/ ]; then
24        exit 0
25fi
26
27# fixed udev hook
28if [ -e $DESTDIR/lib/udev/ ] && [ -e $DESTDIR/lib/udev/hotplug.functions ]; then
29        exit 0
30fi
31
32cp /lib/udev/hotplug.functions $DESTDIR/lib/udev/
33copy_exec /lib/udev/ide.agent /lib/udev/
34for program in /lib/udev/*_id; do
35        copy_exec $program /lib/udev/
36done
37exit 0
Note: See TracBrowser for help on using the repository browser.