CarPC setup updated

This commit is contained in:
2024-07-29 13:12:58 -04:00
parent b95f245ff8
commit b05da55c86
3 changed files with 8 additions and 37 deletions

View File

@ -32,7 +32,7 @@ sudo apt-get update
# clone/pull
mkdir -p $HOME/ProbeStar
cd $HOME/ProbeStar
for i in git_tools linux_tools Cnomicon Pynomicon
for i in git_tools linux_tools Cnomicon CyVehicle Pynomicon
do
if [ -d $i ]; then
cd $i
@ -40,7 +40,7 @@ do
git pull --recurse-submodules
cd ..
else
git clone https://github.com/nprobert/$i --recurse-submodules
git clone https://www.probestar.com/PStar/$i --recurse-submodules
fi
done
cd $HOME
@ -49,6 +49,7 @@ for i in ProbeStar/*; do
done
mkdir bin
cp linux_tools/bin/* bin/
cp git_tool/bin/* bin/
# checkouts
mkdir -p $HOME/NTCNA
@ -61,7 +62,7 @@ do
git pull --recurse-submodules
cd ..
else
git clone https://github.com/nprobert/$i --recurse-submodules
git clone https://www.probestar.com/NTCNA-TP/$i --recurse-submodules
fi
done
cd $HOME
@ -74,16 +75,16 @@ if [ -d $HOME/ProbeStar/Cnomicon ]; then
cd $HOME/Cnomicon/packages
./packages.sh
cd ..
./cbuild.sh
./cinstall.sh
# ./cbuild.sh
# ./cinstall.sh
fi
if [ -d $HOME/NTCNA/CVehicle ]; then
cd $HOME/CVehicle/packages
./packages.sh
cd ..
./cbuild.sh
./cinstall.sh
# ./cbuild.sh
# ./cinstall.sh
fi
# python stuff

View File

@ -21,13 +21,4 @@ ifconfig can0 up
/usr/local/cnomicon/sbin/cnomicon-setup
/usr/local/cvehicle/sbin/cvehicle-setup
# BSMP standalone (without MABX2)
ping -c 1 -W 1 mabx2 &> /dev/null
if [ "$?" = "1" ]
then
echo "MABX2 not found!"
#cd /home/neal/NTCNA/CVehicle/daemons/bsmpd
#./gen5bsmpd.sh
fi
exit 0

View File

@ -1,21 +0,0 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target