diff --git a/le-multiterminal-lic/package/DEBIAN/control b/le-multiterminal-lic/package/DEBIAN/control
index 79c23241cfe802b58c543c2a2d45e2f3fc26647b..b6f756c68fbf952a4386838437ee0639db1edd3b 100755
--- a/le-multiterminal-lic/package/DEBIAN/control
+++ b/le-multiterminal-lic/package/DEBIAN/control
@@ -1,7 +1,7 @@
 Package: le-multiterminal-lic
 Priority: important
 Section: main
-Version: 0.0.3
+Version: 0.0.7
 Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br>
 Description: Userful multiplier license for Linux Educacional 5
 Architecture: all
diff --git a/le-multiterminal-lic/package/DEBIAN/postrm b/le-multiterminal-lic/package/DEBIAN/postrm
index 84f7648c126efd2cac824632172b6f87edc4b1c1..cf479ad44dbe4da90df8e6de2f8a1cf7d9b50da8 100755
--- a/le-multiterminal-lic/package/DEBIAN/postrm
+++ b/le-multiterminal-lic/package/DEBIAN/postrm
@@ -20,9 +20,21 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 # USA.
 
-LicExt="1box.info"
-DirLic="/etc/userful/license"
+# Paths
+DirLic="/etc/userful/license/"
+LicExt="1Box.info"
 
-if [ -f $DirLic/*$LicF ]; then
-    rm -f $DirLic/*$LicF
+# List of file to divert
+List="$(ls ${DirLic}/*${LicExt}* 2> /dev/null)"
+
+# Move diverted files back
+if [[ "$1" != "upgrade" ]]; then
+    for file in $List; do
+        if [[ "${file}" != *".real" ]]; then
+            if test -e "${file}.real"; then
+                rm -f "${file}"
+            fi
+        fi
+        dpkg-divert --remove --rename "${file%.real}"
+    done
 fi
diff --git a/le-multiterminal-lic/package/DEBIAN/preinst b/le-multiterminal-lic/package/DEBIAN/preinst
new file mode 100755
index 0000000000000000000000000000000000000000..a678ac4f1759c9d16fbbcb60cb360ae0c182ed25
--- /dev/null
+++ b/le-multiterminal-lic/package/DEBIAN/preinst
@@ -0,0 +1,35 @@
+#!/bin/bash
+#
+# Copyright (C) 2004-2012 Centro de Computacao Cientifica e Software Livre
+# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
+#
+# This file is part of le-multiterminal-lic
+#
+# le-multiterminal-lic is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
+
+# Paths
+DirLic="/etc/userful/license/"
+LicExt="1Box.info"
+
+# Files to divert
+license_list="$(ls ${DirLic}/*${LicExt} 2> /dev/null)"
+
+# Divert files
+for file in $license_list; do
+    dpkg-divert --divert "${file}.real" --rename "${file}"
+done
+
+exit 0