Compare commits
No commits in common. "0b5197e546a90a2e2f52463bdd870fb68f8a0fe5" and "0a9dd2931b92cbb584e824af5df204818766269d" have entirely different histories.
0b5197e546
...
0a9dd2931b
10
install.sh
10
install.sh
@ -8,23 +8,17 @@ sudo apt-get install python3-fido2 -y
|
|||||||
sudo apt-get install python3-nfcpy -y
|
sudo apt-get install python3-nfcpy -y
|
||||||
sudo apt-get install screen -y
|
sudo apt-get install screen -y
|
||||||
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get upgrade -y
|
|
||||||
|
|
||||||
sudo mkdir /user/CNSA
|
sudo mkdir /user/CNSA
|
||||||
|
|
||||||
# Define crontab job
|
# Define crontab job
|
||||||
JOB="@reboot /bin/sh /user/CNSA/script/startup.sh"
|
JOB="@reboot /bin/sh /user/CNSA/CNSA-276-FP/startup.sh"
|
||||||
|
|
||||||
# Check if the job is already in the crontab and add it if it's not
|
# Check if the job is already in the crontab and add it if it's not
|
||||||
( crontab -l | grep -F "$JOB" || echo "$JOB" ) | crontab -
|
( crontab -l | grep -F "$JOB" || echo "$JOB" ) | crontab -
|
||||||
|
|
||||||
sudo git clone https://gitea.eggtech.net/eggman20339/CNSA-276-FP.git /user/CNSA/CNSA-276-FP
|
sudo git clone https://gitea.eggtech.net/eggman20339/CNSA-276-FP.git /user/CNSA/CNSA-276-FP
|
||||||
|
|
||||||
sudo mkdir /user/CNSA/script
|
sudo chmod 777 /user/CNSA/CNSA-276-FP/startup.sh
|
||||||
sudo cp /user/CNSA/CNSA-276-FP/startup.sh /user/CNSA/script/startup.sh
|
|
||||||
|
|
||||||
sudo chmod 777 /user/CNSA/script/startup.sh
|
|
||||||
|
|
||||||
pip3 install --upgrade fido2 --break-system-packages
|
pip3 install --upgrade fido2 --break-system-packages
|
||||||
pip3 install nfcpy --break-system-packages
|
pip3 install nfcpy --break-system-packages
|
||||||
|
2
main.py
2
main.py
@ -33,7 +33,7 @@ On Windows, the native WebAuthn API will be used.
|
|||||||
"""
|
"""
|
||||||
import time
|
import time
|
||||||
import configparser
|
import configparser
|
||||||
gpie = True
|
gpie = False
|
||||||
if gpie:
|
if gpie:
|
||||||
import RPi.GPIO as GPIO
|
import RPi.GPIO as GPIO
|
||||||
import pickle
|
import pickle
|
||||||
|
@ -28,5 +28,3 @@ sudo chmod 777 /user/CNSA/CNSA-276-FP/startup.sh
|
|||||||
sudo cp /config.bak /user/CNSA/CNSA-276-FP/config.ini
|
sudo cp /config.bak /user/CNSA/CNSA-276-FP/config.ini
|
||||||
|
|
||||||
screen -dmS DoorAuth bash -c "cd /user/CNSA/CNSA-276-FP/ && python3 main.py"
|
screen -dmS DoorAuth bash -c "cd /user/CNSA/CNSA-276-FP/ && python3 main.py"
|
||||||
|
|
||||||
sudo cp /user/CNSA/CNSA-276-FP/startup.sh /user/CNSA/script/startup.sh
|
|
Loading…
Reference in New Issue
Block a user