rename test.py -> door.py

This commit is contained in:
Lynn Ochs 2021-03-10 22:22:22 +01:00
parent 7a439df1bc
commit b2e55cc70d
3 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View File

@ -2,7 +2,7 @@
/root_overlay/etc/door_tokens
/root_overlay/etc/dropbear
/root_overlay/root/key
/root_overlay/bin/test.py
/root_overlay/bin/door.py
/root_overlay/bin/poll_desfire
/root_overlay/etc/wpa_supplicant
/root_overlay/root/.ssh/authorized_keys

View File

@ -7,7 +7,7 @@ sdcard.img: buildroot/.config
make -C buildroot all
cp buildroot/output/images/sdcard.img sdcard.img
root_overlay: root_overlay/bin/test.py
root_overlay: root_overlay/bin/door.py
root_overlay: root_overlay/etc/door_tokens
root_overlay: root_overlay/etc/dropbear/dropbear_ecdsa_host_key
root_overlay: root_overlay/etc/wpa_supplicant/wpa_supplicant.conf
@ -29,7 +29,7 @@ root_overlay/root/key:
mkdir -p `dirname $@`
dd if=/dev/urandom of=$@ bs=1 count=16
root_overlay/bin/test.py: door_control/door.py
root_overlay/bin/door.py: door_control/door.py
mkdir -p `dirname $@`
cp $< $@
@ -46,7 +46,7 @@ clean:
make -C buildroot clean
rm -f sdcard.img
rm -f root_overlay/root/.ssh/authorized_keys
rm -f root_overlay/bin/test.py
rm -f root_overlay/bin/door.py
menuconfig:
make -C buildroot menuconfig

View File

@ -1,6 +1,6 @@
#!/bin/sh
while true; do
start-stop-daemon -S -m -p /tmp/poll_desfire.pid -x /bin/poll_desfire -b -- /root/key /tmp/nfc_fifo
start-stop-daemon -v -p /tmp/fcpy.pid -S -b -m -v -x /usr/bin/python -- /bin/test.py
start-stop-daemon -v -p /tmp/fcpy.pid -S -b -m -v -x /usr/bin/python -- /bin/door.py
sleep 30
done