-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHilux-restart.sh
50 lines (38 loc) · 928 Bytes
/
Hilux-restart.sh
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# Hilux Restart Script
# (c) 2018 by npq7721 for Hilux
#
# Usage:
# bash Hilux-setup.sh
#Color codes
RED='\033[0;91m'
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
#Delay script execution for N seconds
function delay { echo -e "${GREEN}Sleep for $1 seconds...${NC}"; sleep "$1"; }
echo -e "${YELLOW}Hilux Restart Script v0.1${NC}"
#KILL THE MFER
hilux-cli stop
pkill hiluxd
delay 20
#Delete .reecore contents
echo -e "${YELLOW}Scrapping .hiluxcore...${NC}"
cd ~/.hiluxcore
rm -rf c* b* w* p* n* m* f* d* g*
#Restarting Daemon
hiluxd -daemon
echo -ne '[## ] (15%)\r'
sleep 6
echo -ne '[###### ] (30%)\r'
sleep 6
echo -ne '[######## ] (45%)\r'
sleep 6
echo -ne '[############## ] (72%)\r'
sleep 10
echo -ne '[###################] (100%)\r'
echo -ne '\n'
===================================================
# Run nodemon.sh
nodemon.sh
# EOF