7d277eb2d057f981b5c25388e249a8f417a179c4
[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 # Latest change: Wed Sep 19 20:07:43 CEST 2007 [mika]
8 ################################################################################
9
10 # misc stuff
11   umask 022
12   . /etc/grml/lsb-functions || exit 6
13
14 if [ -x /usr/bin/freshclam ] ; then
15   einfo "Updating clamav database via running freshclam"
16   /usr/bin/freshclam ; eend $?
17 else
18   ewarn "freshclam not installed" ; eend 0
19 fi
20
21 if [ -x /usr/bin/update-pciids ] ; then
22   einfo "Updating PCI- and USB-ids"
23   update-pciids || echo "Warning: update-pciids was not successfull">&2
24   update-usbids || echo "Warning: update-usbids was not successfull">&2
25   eend $?
26 else
27   ewarn "update-pciids/update-usbids not installed" ; eend 0
28 fi
29
30 if [ -x /usr/sbin/nessus-update-plugins ] ; then
31    einfo "Updating nessus-plugins"
32    nessus-update-plugins || echo "Warning: nessus-update-plugins was not successfull">&2
33    eend $?
34 else
35   ewarn "nessus-update-plugins not installed" ; eend 0
36 fi
37
38 ## END OF FILE #################################################################