Merge branch 'main' of ssh://imaginaerraum.de:2201/apo/DoorPi into main
This commit is contained in:
commit
1478e6fdb1
5
Makefile
5
Makefile
|
@ -34,8 +34,7 @@ root_overlay/bin/door.py: door_control/door.py
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
root_overlay/etc/dropbear/dropbear_ecdsa_host_key:
|
root_overlay/etc/dropbear/dropbear_ecdsa_host_key:
|
||||||
mkdir -p `dirname $@`
|
sh -c 'if [[ ! -f $@ && ! -f $@.openssh ]]; then mkdir -p `dirname $@` && ssh-keygen -t ecdsa -f $@.openssh; fi'
|
||||||
ssh-keygen -t ecdsa -f $@
|
|
||||||
|
|
||||||
root_overlay/etc/wpa_supplicant/wpa_supplicant.conf:
|
root_overlay/etc/wpa_supplicant/wpa_supplicant.conf:
|
||||||
mkdir -p `dirname $@`
|
mkdir -p `dirname $@`
|
||||||
|
@ -51,4 +50,4 @@ clean:
|
||||||
menuconfig:
|
menuconfig:
|
||||||
make -C buildroot menuconfig
|
make -C buildroot menuconfig
|
||||||
|
|
||||||
.PHONY: all clean sdcard.img menuconfig root_overlay
|
.PHONY: all clean sdcard.img menuconfig root_overlay root_overlay/etc/dropbear/dropbear_ecdsa_host_key
|
||||||
|
|
2
root_overlay/etc/init.d/S40dropbearkey.sh
Normal file
2
root_overlay/etc/init.d/S40dropbearkey.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
[[ ! -f /etc/dropbear/dropbear_ecdsa_host_key && -f /etc/dropbear/host_key ]] && dropbearconvert openssh dropbear /etc/dropbear/host_key /etc/dropbear/dropbear_ecdsa_host_key
|
Loading…
Reference in New Issue
Block a user