From 058dcef0d8013a45c5f289f91d08b036860aea94 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 15 Jul 2008 23:42:33 +0200 Subject: Replacing previous imperfect changes for udevadm with check for udevadm and using old commands when beeing on etch. Also handling udevtrigger with udevadm if available. --- hooks/live | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'hooks') diff --git a/hooks/live b/hooks/live index 9aeca4b..190fac5 100755 --- a/hooks/live +++ b/hooks/live @@ -126,8 +126,15 @@ fi copy_exec /usr/bin/md5sum /bin # Program: udev -copy_exec /sbin/udevadm /sbin -copy_exec /sbin/udevsettle /sbin +if [ -x /sbin/udevadm ] +then + # lenny + copy_exec /sbin/udevadm /sbin +else + # etch + copy_exec /sbin/udevtrigger /sbin + copy_exec /sbin/udevsettle /sbin +fi copy_exec /usr/bin/udevinfo /bin # Program: wget -- cgit v1.2.3