core-admin/dom0/aux-tools/check_and_remove_appmenu.sh
Joanna Rutkowska a17989470a Initial public commit.
(c) 2010 Invisible Things Lab

Authors:
=========
Joanna Rutkowska <joanna@invisiblethingslab.com>
Rafal Wojtczuk  <rafal@invisiblethingslab.com>
2010-04-05 20:58:57 +02:00

15 lines
279 B
Bash
Executable File

#!/bin/sh
if grep -q X-Qubes-VmName $1 ; then
exit 0
fi
if grep -q "Categories=.*\(System\|Settings\)" $1 ; then
#echo "Leaving file: $1"
exit 0
fi
BACKUP_DIR="/var/lib/qubes/backup/removed-apps/"
mkdir -p $BACKUP_DIR
#echo "Moving file: $1 to $BACKUP_DIR
mv $1 $BACKUP_DIR