Skip to content

Commit

Permalink
GRMLBASE/93-update-usbids: test for new update-usbids location in /us…
Browse files Browse the repository at this point in the history
…r/sbin

"Recent" versions of usbutils ship the update-usbids
binary in /usr/sbin and no longer in /usr/bin.
  • Loading branch information
mika committed Nov 22, 2017
1 parent 3ddb937 commit 1b8b36a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/grml/fai/config/scripts/GRMLBASE/93-update-usbids
Expand Up @@ -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

Expand Down

0 comments on commit 1b8b36a

Please sign in to comment.