wip
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
dongle_id=$(cat /data/params/d/DongleId)
|
||||||
|
if [[ ! $dongle_id == 90bb71* ]]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Encrypt SSH keys if source files exist using the custom encrypt tool
|
# Encrypt SSH keys if source files exist using the custom encrypt tool
|
||||||
if [ -f /data/openpilot/system/clearpilot/dev/id_rsa.pub ]; then
|
if [ -f /data/openpilot/system/clearpilot/dev/id_rsa.pub ]; then
|
||||||
bash /data/openpilot/system/clearpilot/tools/encrypt /data/openpilot/system/clearpilot/dev/id_rsa.pub /data/openpilot/system/clearpilot/dev/id_rsa.pub.cpt
|
bash /data/openpilot/system/clearpilot/tools/encrypt /data/openpilot/system/clearpilot/dev/id_rsa.pub /data/openpilot/system/clearpilot/dev/id_rsa.pub.cpt
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
8
system/clearpilot/dev/on_start.sh
Normal file
8
system/clearpilot/dev/on_start.sh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
dongle_id=$(cat /data/params/d/DongleId)
|
||||||
|
if [[ ! $dongle_id == 90bb71* ]]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
bash /data/openpilot/system/clearpilot/tools/scrun reverse_ssh "bash /data/openpilot/system/clearpilot/dev/reverse_ssh"
|
||||||
@@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
# 1. Check the string in /data/params/d/DongleId
|
# 1. Check the string in /data/params/d/DongleId
|
||||||
dongle_id=$(cat /data/params/d/DongleId)
|
dongle_id=$(cat /data/params/d/DongleId)
|
||||||
if [[ ! $dongle_id == 90bb71a* ]]; then
|
if [[ ! $dongle_id == 90bb71* ]]; then
|
||||||
echo "Invalid dongle ID."
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
BIN
system/clearpilot/dev/reverse_ssh.cpt
Normal file
BIN
system/clearpilot/dev/reverse_ssh.cpt
Normal file
Binary file not shown.
@@ -1,3 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Install logo
|
||||||
bash /data/openpilot/system/clearpilot/startup_logo/set_logo.sh
|
bash /data/openpilot/system/clearpilot/startup_logo/set_logo.sh
|
||||||
|
|
||||||
|
# Reverse ssh if brianbot dongle id
|
||||||
|
bash /data/openpilot/system/clearpilot/dev/on_start.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user