X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fgrml%2Fgrml_cleanup_chroot.online;fp=etc%2Fgrml%2Ffai%2Fgrml%2Fgrml_cleanup_chroot.online;h=7d277eb2d057f981b5c25388e249a8f417a179c4;hp=0000000000000000000000000000000000000000;hb=06335ed6cf5e6dad2ba8d056540957a3b3fde8e3;hpb=9d56ad4d59e3ef3241532b3f381921a19412dbce diff --git a/etc/grml/fai/grml/grml_cleanup_chroot.online b/etc/grml/fai/grml/grml_cleanup_chroot.online new file mode 100755 index 0000000..7d277eb --- /dev/null +++ b/etc/grml/fai/grml/grml_cleanup_chroot.online @@ -0,0 +1,38 @@ +#!/bin/bash +# Filename: /etc/grml/fai/grml/grml_cleanup_chroot_no_online +# Purpose: execute tasks that require network access +# Authors: (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2. +# Latest change: Wed Sep 19 20:07:43 CEST 2007 [mika] +################################################################################ + +# misc stuff + umask 022 + . /etc/grml/lsb-functions || exit 6 + +if [ -x /usr/bin/freshclam ] ; then + einfo "Updating clamav database via running freshclam" + /usr/bin/freshclam ; eend $? +else + ewarn "freshclam not installed" ; eend 0 +fi + +if [ -x /usr/bin/update-pciids ] ; then + einfo "Updating PCI- and USB-ids" + update-pciids || echo "Warning: update-pciids was not successfull">&2 + update-usbids || echo "Warning: update-usbids was not successfull">&2 + eend $? +else + ewarn "update-pciids/update-usbids not installed" ; eend 0 +fi + +if [ -x /usr/sbin/nessus-update-plugins ] ; then + einfo "Updating nessus-plugins" + nessus-update-plugins || echo "Warning: nessus-update-plugins was not successfull">&2 + eend $? +else + ewarn "nessus-update-plugins not installed" ; eend 0 +fi + +## END OF FILE #################################################################