BLACKSITE
:
216.73.216.53
:
147.93.26.142 / rirotextiles.com
:
Linux in-mum-web1829.main-hosting.eu 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
:
/
opt
/
linuxki
/
Upload File:
files >> //opt/linuxki/linuxki_remove
#!/bin/bash #************************************************************************** # Copyright 2017 Hewlett Packard Enterprise Development LP. # 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. 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. #*************************************************************************** . /opt/linuxki/config # # Stop the container if it is already running. # /opt/linuxki/kivis-stop # # Remove the Docker image if it exists. # if docker image inspect linuxki 2> /dev/null; then docker rmi --force linuxki fi # # Remove module(s) # echo -e \\tRemoving LiKI kernel module\(s\) ... modprobe -r -q likit rm -f /lib/modules/*/misc/likit.ko 2> /dev/null # # remove the LinuxKI Manpages # rm /usr/share/man/man1/kiinfo* /usr/share/man/man1/kiall* /usr/share/man/man1/runki* /usr/share/man/man1/kiclean* /usr/share/man/man7/linuxki* # # If this installation is on a cluster, then there are a few additional tasks... # grep -q CLUSTER /opt/linuxki/.configured if [ $? -eq 0 ]; then [ -z "$EXPORTS" ] && echo "EXPORTS not set in /opt/linuxki/config???" && exit 12 [ -z "$CMU_DATADIR" ] && echo "CMU_DATADIR not set in /opt/linuxki/config???" && exit 12 if [ -f $EXPORTS ]; then # # Un-export the data and binaries directories # grep -q "Linux KI Toolset Integration" $EXPORTS if [ $? -eq 0 ]; then echo -e \\tRemoving Linux KI Toolset NFS exports from $EXPORTS ... TMPFILE=`mktemp` grep -v -e "Linux KI" -e linuxki -e $CMU_DATADIR $EXPORTS > $TMPFILE mv $TMPFILE $EXPORTS exportfs -r rm -f $TMPFILE fi fi if [ -f /opt/cmu/etc/cmu_custom_menu ]; then # # Remove CMU context menu # grep -q "Linux KI Toolset Integration" /opt/cmu/etc/cmu_custom_menu if [ $? -eq 0 ]; then echo -e \\tRemoving Linux KI Toolset context menu items from /opt/cmu/etc/cmu_custom_menu ... TMPFILE=`mktemp` grep -v "Linux KI" /opt/cmu/etc/cmu_custom_menu > $TMPFILE mv $TMPFILE /opt/cmu/etc/cmu_custom_menu rm -f $TMPFILE fi fi # # unmount NFS mount # grep -q $CMU_DATADIR /etc/fstab && umount -f $CMU_DATADIR # # Remove NFS mounts from /etc/fstab # grep -q "Linux KI Toolset Integration" /etc/fstab if [ $? -eq 0 ]; then TMPFILE=`mktemp` grep -v -e linuxki -e $CMU_DATADIR -e "Linux KI" /etc/fstab > $TMPFILE mv $TMPFILE /etc/fstab chmod 644 /etc/fstab rm -f $TMPFILE fi fi # # Remind user of data directory on head node # [ ! -z $CMU_DATADIR ] && [ -d $CMU_DATADIR ] && echo -e "\t*** Remember, there may be data collections in $CMU_DATADIR ***" # # Remove the config files # rm -f /opt/linuxki/.configured /opt/linuxki/.cmode # # Remove the kiinfo binary, which is not included in the RPM but was linked at install time to the x86 or arm binary # rm -f /opt/linuxki/kiinfo exit 0