remove unneeded

This commit is contained in:
cronyx
2025-02-20 02:35:55 +03:00
parent 71348d60d7
commit badff74a0a
41 changed files with 127 additions and 243 deletions
@@ -1,7 +0,0 @@
#!/bin/sh
case "$1" in
start)
qrscan.sh >/dev/null 2>&1 &
;;
esac
@@ -1,26 +0,0 @@
#!/bin/sh
gpio=47 # RED LED, BLUE = 46
n=0
gpio set ${gpio} | logger -t gpio
while true ; do
if [ "$n" -ge 30 ]; then
logger -t qrscan "Recognition timeout exceeded, reboot camera and try again..."
gpio clear ${gpio} | logger -t gpio
exit 1
fi
timeout 1 wget -q -O /tmp/image.jpg http://127.0.0.1/image.jpg
data=$(qrscan -p /tmp/image.jpg)
if [[ -n "$data" ]] && $(echo "$data" | grep -q wlan); then
fw_setenv $(echo $data | cut -d " " -f 1 | sed 's/=/ /')
fw_setenv $(echo $data | cut -d " " -f 2 | sed 's/=/ /')
logger -t qrscan "Recognition successfully, wlanssid and wlanpass is writed to env. Reboot required."
curl --data-binary @/usr/lib/sounds/ready_48k.pcm http://localhost/play_audio
sleep 3
reboot -f
fi
sleep 1
n=$((n + 1))
done
@@ -0,0 +1,13 @@
alarm_in=-1
alarm_out=-1
button=-1
ircut1=79
ircut2=78
led1=47
led2=46
light_ir=52
light_wl=-1
light_sensor=-1
mmc_pwr=-1
speaker=15
usb=-1
@@ -0,0 +1,5 @@
#!/bin/sh
### set leds to off ###
gpio clear 46
gpio clear 47