No longer install PuTTY and other windows binaries
[grml-live.git] / etc / grml / fai / grml / grml_cleanup_chroot.online
1 #!/bin/bash
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 ################################################################################
8
9 # misc stuff
10   umask 022
11   . /etc/grml/lsb-functions || exit 6
12   [ -x /usr/bin/timeout ] && TIMEOUT="10" || TIMEOUT=""
13
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 $?
18   else
19      /usr/bin/freshclam ; eend $?
20   fi
21 else
22   ewarn "freshclam not installed" ; eend 0
23 fi
24
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
30   else
31      update-pciids || echo "Warning: update-pciids was not successfull">&2
32      update-usbids || echo "Warning: update-usbids was not successfull">&2
33   fi
34   eend $?
35 else
36   ewarn "update-pciids/update-usbids not installed" ; eend 0
37 fi
38
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
43    else
44       nessus-update-plugins || echo "Warning: nessus-update-plugins was not successfull">&2
45    fi
46    eend $?
47 else
48   ewarn "nessus-update-plugins not installed" ; eend 0
49 fi
50
51 ## END OF FILE #################################################################