GRMLBASE/93-update-usbids: test for new update-usbids location in /usr/sbin
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 93-update-usbids
index 6fc4a73..d2972d3 100755 (executable)
@@ -16,8 +16,8 @@ set -e
 
 [ -x $target/usr/bin/timeout ] && TIMEOUT="10" || TIMEOUT=""
 
-if ! [ -x $target/usr/bin/update-usbids ] ; then
-  echo "Warning: update-usbids not installed"
+if ! [ -x "${target}/usr/sbin/update-usbids" ] && ! [ -x "${target}/usr/bin/update-usbids" ] ; then
+  echo "Warning: update-usbids not installed (neither /usr/sbin/update-usbids nor /usr/bin/update-usbids exists)"
   exit 0
 fi