#!/bin/sh #---------------------------------------------------------------------------- # /var/install/bin/post-setup-package-menu - clean up # # Creation: 2012-02-24 hbfl # Last Update: $Id$ # # Copyright (c) 2012-@@YEAR@@ the eisfair team, team(at)eisfair(dot)org # # This program 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. #---------------------------------------------------------------------------- # clean up rm -f /var/lock/package_menu.pid rm -f /tmp/index.txt rm -f /tmp/_do_all rm -f /tmp/_have_require rm -f /tmp/required_{libs,packages,dev_packages,static_packages}_found* # check for CUI menu if $(grep -qE "^MENU=['\"]/var/install/bin/show-menu.cui['\"]" /etc/config.d/setup) then use_cui=true fi if [ -f /tmp/cdrom_installer_mounted ] then if ${use_cui:-false} then mountpath=/media/cdrom fuser -mk ${mountpath} umount ${mountpath} else /var/install/bin/system-devices-umount-cdrom fi rm -f /tmp/cdrom_installer_mounted fi if [ -f /tmp/usb_installer_mounted ] then if ! ${use_cui:-false} then /var/install/bin/system-devices-umount-usb fi rm -f /tmp/usb_installer_mounted fi # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------