Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update spelling / grammar in RPiOS64-IA-Install.sh #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions RPiOS64-IA-Install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
GREY=$(tput setaf 8)

#### SCRIPT IS MENT TO BE TO RUN AS ROOT! NOT AS PI WITH SUDO ###########################################################################
#### SCRIPT IS MEANT TO BE TO RUN AS ROOT! NOT AS PI WITH SUDO ###########################################################################
if [ $USER != root ]
then
printf "${RED}PLEASE RUN THIS SCRIPT AS ROOT! DONT USE SUDO! $NORMAL \n"
exit
fi
printf " $YELLOW
====================================================================
! PLEASE DONT USE SUDO, USE SU TO LOGIN TO THE ROOT USER !
! PLEASE DONT USE SUDO USE SU TO LOGIN TO THE ROOT USER !
! PLEASE STOP THIS SCRIPT NOW WITH CONTROL+C IF YOU ARE USING SUDO !
! CONTINUING SETUP IN 3 SECONDS... !
====================================================================
Expand Down Expand Up @@ -56,15 +56,15 @@ fi
read -p "Enter new hostname e.g. RPi4-01-PVE : " HOSTNAME
while [[ ! "$HOSTNAME" =~ ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$ ]]
do
printf " --->$RED $HOSTNAME $NORMAL<--- Is NOT an valid HOSTNAME, try again...\n"
printf " --->$RED $HOSTNAME $NORMAL<--- is NOT a valid HOSTNAME, try again...\n"
read -p "Enter new hostname e.g.: RPi4-01-PVE : " HOSTNAME
done

#### IP AND NETMASK ! ###################################################################################################################
read -p "Enter new static IP and NETMASK e.g. 192.168.0.100/24 : " RPI_IP
while [[ ! "$RPI_IP" =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}+\/[0-9]+$ ]]
do
printf " --->$RED $RPI_IP $NORMAL<--- Is NOT an valid IPv4 ADDRESS with NETMASK, try again...\n"
printf " --->$RED $RPI_IP $NORMAL<--- is NOT a valid IPv4 ADDRESS with NETMASK, try again...\n"
read -p "IPADDRESS & NETMASK ! E.G.: 192.168.0.100/24 : " RPI_IP
done
RPI_IP_ONLY=$(echo "$RPI_IP" | cut -d '/' -f 1)
Expand All @@ -77,7 +77,7 @@ if [ "$CORRECT" != "y" ]
read -p "Enter the gateway e.g. 192.168.0.1 : " GATEWAY
while [[ ! "$GATEWAY" =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]
do
printf " --->$RED $GATEWAY $NORMAL<--- Is NOT an valid IPv4 GATEWAY, try again...\n"
printf " --->$RED $GATEWAY $NORMAL<--- is NOT a valid IPv4 GATEWAY, try again...\n"
read -p "THE GATEWAY IP ! E.G. 192.168.0.1 : " GATEWAY
done
fi
Expand Down