-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInstall-PiNode-DOGE.sh
45 lines (41 loc) · 1.33 KB
/
Install-PiNode-DOGE.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
#!/bin/bash
##To run me on cmd line wget -O - https://raw.githubusercontent.com/shermand100/pinode-doge/main/Install-PiNode-DOGE.sh | bash
echo -e "\e[32mPreparing Menu...\e[0m"
sleep 2
#Check user has whiptail - required to display menu
sudo apt-get install whiptail -y
CHOICE=$(
whiptail --title "Welcome to the PiNode-DOGE Project" --menu "For correct installation select your OS" 20 60 5 \
"1)" "Raspberry Pi OS" \
"2)" "Armbian Jammy" \
"3)" "Exit" 3>&2 2>&1 1>&3
)
case $CHOICE in
"1)")
#Commands for Raspberry Pi OS
echo -e "\e[32mDownloading data for install\e[0m"
sleep 3
wget https://raw.githubusercontent.com/shermand100/pinode-doge/Raspberry-Pi-OS/installPart1.sh
echo -e "\e[32mPiNode-DOGE Raspbian Raspberry Pi OS configuration file received\e[0m"
echo -e "\e[32mStarting Installation\e[0m"
sudo chmod 755 /home/pi/installPart1.sh
sleep 2
./installPart1.sh
exit 1
;;
"2)")
#Commands for Armbian Jammy (latest)
echo -e "\e[32mDownloading data for install\e[0m"
sleep 3
wget https://raw.githubusercontent.com/shermand100/pinode-doge/Armbian-Debian/installPart1.sh
echo -e "\e[32mPiNode-DOGE Armbian Jammy OS configuration file received\e[0m"
echo -e "\e[32mStarting Installation\e[0m"
sudo chmod 755 ~/installPart1.sh
sleep 2
./installPart1.sh
exit 1
;;
"3)") exit
;;
esac
exit