]> git.entuzijast.net Git - imunes.git/commitdiff
Simple shell script to cleanup all vimages (hierarchical vimages are not supported)
authormiljenko <miljenko>
Wed, 14 May 2008 13:53:23 +0000 (13:53 +0000)
committermiljenko <miljenko>
Wed, 14 May 2008 13:53:23 +0000 (13:53 +0000)
Bug found by:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

cleanupAll [new file with mode: 0755]

diff --git a/cleanupAll b/cleanupAll
new file mode 100755 (executable)
index 0000000..b447ac8
--- /dev/null
@@ -0,0 +1,12 @@
+#! /bin/sh
+
+#####
+# Vimage cleanup - "flat", no hierarchical vimages
+##
+
+eids=`vimage -l | grep -v "^ " | tr -d ':"' | grep -v '^\.$'`
+
+for e in $eids; do
+    imunes -b -e $e
+done
+