2 # Filename: /etc/grml/fai/grml/grml_cleanup_chroot_no_online
3 # Purpose: execute tasks that require network access
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 ################################################################################
11 . /etc/grml/lsb-functions || exit 6
12 [ -x /usr/bin/timeout ] && TIMEOUT="10" || TIMEOUT=""
14 if [ -x /usr/bin/freshclam ] ; then
15 einfo "Updating clamav database via running freshclam"
16 if [ -n "$TIMEOUT" ] ; then
17 timeout $TIMEOUT /usr/bin/freshclam ; eend $?
19 /usr/bin/freshclam ; eend $?
22 ewarn "freshclam not installed" ; eend 0
25 if [ -x /usr/bin/update-pciids ] ; then
26 einfo "Updating PCI- and USB-ids"
27 if [ -n "$TIMEOUT" ] ; then
28 timeout $TIMEOUT update-pciids || echo "Warning: update-pciids was not successfull">&2
29 timeout $TIMEOUT update-usbids || echo "Warning: update-usbids was not successfull">&2
31 update-pciids || echo "Warning: update-pciids was not successfull">&2
32 update-usbids || echo "Warning: update-usbids was not successfull">&2
36 ewarn "update-pciids/update-usbids not installed" ; eend 0
39 if [ -x /usr/sbin/nessus-update-plugins ] ; then
40 einfo "Updating nessus-plugins"
41 if [ -n "$TIMEOUT" ] ; then
42 timeout $TIMEOUT nessus-update-plugins || echo "Warning: nessus-update-plugins was not successfull">&2
44 nessus-update-plugins || echo "Warning: nessus-update-plugins was not successfull">&2
48 ewarn "nessus-update-plugins not installed" ; eend 0
51 ## END OF FILE #################################################################