This commit is contained in:
SpudGunMan
2024-09-04 19:17:37 -07:00
parent bc96f8df49
commit 51a7ff2820
+14
View File
@@ -3,10 +3,24 @@
# install.sh
cd "$(dirname "$0")"
printf "\nMeshing Around Installer\n"
# add user to groups for serial access
printf "\nAdding user to dialout and tty groups for serial access\n"
sudo usermod -a -G dialout $USER
sudo usermod -a -G tty $USER
# check for pip
if ! command -v pip &> /dev/null
then
printf "pip not found, please install pip with your OS\n"
printf "sudo apt-get install python3-pip"
exit 1
else
printf "python pip found\n"
fi
# generate config file, check if it exists
if [ -f config.ini ]; then
printf "\nConfig file already exists, moving to backup config.old\n"