X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F91-update-pciids;fp=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F91-update-pciids;h=03c674cf2dd613c6230253681ede7f16d4b149de;hb=f3b335ea5c94d5cf24ec6b9184106b298849f311;hp=0000000000000000000000000000000000000000;hpb=9d16d7a6c9686f80a18e70bc8b5e67193dc0ffba;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/91-update-pciids b/etc/grml/fai/config/scripts/GRMLBASE/91-update-pciids new file mode 100755 index 0000000..03c674c --- /dev/null +++ b/etc/grml/fai/config/scripts/GRMLBASE/91-update-pciids @@ -0,0 +1,33 @@ +#!/bin/bash +# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/91-update-pciids +# Purpose: update pciids +# Authors: (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2. +################################################################################ + +if ifclass NO_ONLINE ; then + echo "Ignoring script 91-update-pciids as NO_ONLINE is set." + exit 0 +fi + +set -u +set -e + +[ -x $target/usr/bin/timeout ] && TIMEOUT="10" || TIMEOUT="" + +if ! [ -x $target/usr/bin/update-pciids ] ; then + echo "Warning: update-pciids/update-usbids not installed" +else + echo "Updating PCI- and USB-ids" + if [ -n "$TIMEOUT" ] ; then + $ROOTCMD timeout $TIMEOUT update-pciids + $ROOTCMD timeout $TIMEOUT update-usbids + else + $ROOTCMD update-pciids + $ROOTCMD update-usbids + fi +fi + +## END OF FILE ################################################################# +# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2