summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-07-15 23:42:33 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:00 +0100
commit058dcef0d8013a45c5f289f91d08b036860aea94 (patch)
treedb142ab62497146846edbea550348d958f17593c /hooks
parent883234b7943f93dc33ee5f237c9183973a5090f4 (diff)
downloadlive-boot-058dcef0d8013a45c5f289f91d08b036860aea94.tar.gz
live-boot-058dcef0d8013a45c5f289f91d08b036860aea94.zip
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.
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/live11
1 files changed, 9 insertions, 2 deletions
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