2 # Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/91-update-pciids
3 # Purpose: update pciids
4 # Authors: (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 ################################################################################
9 if ifclass NO_ONLINE ; then
10 echo "Ignoring script 91-update-pciids as NO_ONLINE is set."
17 if [ "${1:-}" = "4" ] || [ "${1:-}" = "1" ] ; then
18 echo "Warning: update-pciids returned with exit code ${1:-}." >&2
21 echo "Warning: update-pciids returned with exit code ${1:-}."
22 echo "-> This indicates that networking inside the chroot did not work"
23 echo " while GRMLBASE/91-update-pciids was running."
24 echo " To address this issue you can either configure /etc/resolv.conf"
25 echo " accordingly or just run dnsmasq on your host."
34 [ -x $target/usr/bin/timeout ] && TIMEOUT="10" || TIMEOUT=""
36 if ! [ -x "${target}/usr/sbin/update-pciids" ] && ! [ -x "${target}/usr/bin/update-pciids" ] ; then
37 echo "Warning: update-pciids not installed (neither /usr/sbin/update-pciids nor /usr/bin/update-pciids exists"
41 echo "Updating PCI-IDs"
42 if [ -n "$TIMEOUT" ] ; then
43 $ROOTCMD timeout $TIMEOUT update-pciids
46 $ROOTCMD update-pciids
50 ## END OF FILE #################################################################
51 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2