Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Remotelab-RPi-Setup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Glaser
Remotelab-RPi-Setup
Commits
29b70394
Commit
29b70394
authored
Aug 25, 2022
by
tobiglaser
Browse files
Options
Downloads
Patches
Plain Diff
"fix" missing i2c driver + add ip info
parent
2538293d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.sh
+20
-1
20 additions, 1 deletion
setup.sh
with
20 additions
and
1 deletion
setup.sh
+
20
−
1
View file @
29b70394
...
@@ -126,7 +126,14 @@
...
@@ -126,7 +126,14 @@
if
[
$I2C
-eq
1
]
# if I2C is off
if
[
$I2C
-eq
1
]
# if I2C is off
then
then
echo
" Turning on I2C."
echo
" Turning on I2C."
sudo
raspi-config nonint do_i2c 0
a
=
$(
sudo
raspi-config nonint do_i2c 0
)
# if the i2c driver was updated a reboot is necessary.
# "modprobe: FATAL: Module i2c-dev not found in directory /lib/modules/5.15.32-v7l+"
if
echo
$a
|
grep
-i
'modprobe\|FATAL\|not found'
>
/dev/null
then
pleaseReboot
=
true
fi
else
else
echo
" I2C is active."
echo
" I2C is active."
break
break
...
@@ -162,6 +169,18 @@
...
@@ -162,6 +169,18 @@
sudo cp
-r
Arduino/
*
/home/
$vncBaseName$i
/Arduino/
sudo cp
-r
Arduino/
*
/home/
$vncBaseName$i
/Arduino/
done
done
#display useful info
echo
"Setup complete."
echo
""
echo
"Hostname:
$(
hostname
)
"
echo
"IP-Adress:
$(
hostname
-I
|
awk
'{print $1}'
)
"
#display reboot message if necessary
if
[
"{
$pleaseReboot
}"
==
"true"
]
then
echo
"PLEASE REBOOT"
fi
# Camera Stuff...
# Camera Stuff...
#python3 -m pip install --upgrade --force-reinstall Pillow
#python3 -m pip install --upgrade --force-reinstall Pillow
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment