[Epic-ID: ODUHIGH-516][Task-ID: ODUHIGH-523] Statistics Request API and Timer Based...
[o-du/l2.git] / build / scripts / cleanup
1 ################################################################################
2 #   Copyright (c) [2020] [Radisys]                                        #
3 #                                                                              #
4 #   Licensed under the Apache License, Version 2.0 (the "License");            #
5 #   you may not use this file except in compliance with the License.           #
6 #   You may obtain a copy of the License at                                    #
7 #                                                                              #
8 #       http://www.apache.org/licenses/LICENSE-2.0                             #
9 #                                                                              #
10 #   Unless required by applicable law or agreed to in writing, software        #
11 #   distributed under the License is distributed on an "AS IS" BASIS,          #
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
13 #   See the License for the specific language governing permissions and        #
14 #   limitations under the License.                                             #
15 ################################################################################
16 # This script is used to clean-up the system environment
17 #!/bin/bash
18
19 echo "***** Environment Clean-up Start *****"
20
21 if [ -f /etc/os-release ]; then
22    . /etc/os-release
23    OS=$ID
24 fi
25
26 echo "===> Uninstalling GCC"
27 if [ $OS == "ubuntu" ] ; then
28    sudo apt-get remove -y build-essential
29 else
30    sudo yum groups mark remove -y "Development Tools"
31 fi
32
33 echo ""
34 echo "===> Uninstalling LKSCTP"
35 if [ $OS == "ubuntu" ] ; then
36    sudo apt-get remove -y libsctp-dev
37 else
38    sudo yum remove -y lksctp-tools-devel
39 fi
40
41 echo ""
42 echo "===> Uninstalling PCAP"
43 if [ $OS == "ubuntu" ] ; then
44    sudo apt-get remove -y libpcap-dev
45 else
46    sudo yum remove -y libpcap-devel
47 fi
48
49 echo ""
50 echo "===> Uninstalling XTERM"
51 if [ $OS == "ubuntu" ] ; then
52    sudo apt-get remove -y xterm
53 else
54    sudo yum remove -y xterm
55 fi
56
57 echo ""
58 echo "***** Environment Clean-up Complete *****"
59
60 ################################################################################
61 #                              End of file                                     #
62 ################################################################################
63