Drop Latest change lines, add initial support for Debian/squeeze
[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
13 if [ -x /usr/bin/freshclam ] ; then
14   einfo "Updating clamav database via running freshclam"
15   /usr/bin/freshclam ; eend $?
16 else
17   ewarn "freshclam not installed" ; eend 0
18 fi
19
20 if [ -x /usr/bin/update-pciids ] ; then
21   einfo "Updating PCI- and USB-ids"
22   update-pciids || echo "Warning: update-pciids was not successfull">&2
23   update-usbids || echo "Warning: update-usbids was not successfull">&2
24   eend $?
25 else
26   ewarn "update-pciids/update-usbids not installed" ; eend 0
27 fi
28
29 if [ -x /usr/sbin/nessus-update-plugins ] ; then
30    einfo "Updating nessus-plugins"
31    nessus-update-plugins || echo "Warning: nessus-update-plugins was not successfull">&2
32    eend $?
33 else
34   ewarn "nessus-update-plugins not installed" ; eend 0
35 fi
36
37 ## END OF FILE #################################################################