#!/bin/bash # When a package is upgraded, there may be some shared # libs that are leftover by the previous package. # It is not feasible to remove these libs while the system # is up and running since some running program may have loaded the # lib in memory and it may cause problems for the application. # The safest way to delete the file is when the system is being # booted up. # This script removes the files that are stored by the # removeSharedLib script source `which ttPM-funcs` 2>/dev/null || exit 1 # Need to be root checkRoot for file in $(cat $TT_FLAGS_DIR/cleanLibs 2>/dev/null) do rm -f $file done rm -f $TT_FLAGS_DIR/cleanLibs