summaryrefslogtreecommitdiffstats
path: root/stacks/lwip_stack/release/uninstall.sh
blob: 92ae5fe758ea69303c094f0f4db16ed713453ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash

. ./script/nstack_var.sh
. ./script/nstack_fun.sh

########################################################
# init_log_file:nstack.log and dpdk.log
init_log_file
log $LINENO "#######################uninstall nstack#######################"


#############################################
# step1 stop the applications that use the shared huge memory of nstack
stop_nStackApps

#############################################
# step2 delete the huge page files created by nstack
recover_hugepage


#############################################
# step3 recover the nic configuration
recover_network


#############################################
# step4 delete nstack log files
delete_log_file


# log file has been deleted, should print on screen now
echo "uninstall nStack successfully!"

exit 0