summaryrefslogtreecommitdiff
path: root/hooks/udevhelper
blob: f86e4af65ee0db5649fac939fa1a55b34827fc8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
# FIXME: kill after lenny release
# needed for UUID root and partial etch upgrades
#
PREREQ="udev"

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

. /usr/share/initramfs-tools/hook-functions

# should never happen
if [ ! -e $DESTDIR/lib/udev/ ]; then
	exit 0
fi

# fixed udev hook
if [ -e $DESTDIR/lib/udev/ ] && [ -e $DESTDIR/lib/udev/hotplug.functions ]; then
	exit 0
fi

cp /lib/udev/hotplug.functions $DESTDIR/lib/udev/
for program in /lib/udev/*_id; do
	copy_exec $program /lib/udev/
done
exit 0