blob: 16b07473a2086760e1b717a26c833494061530d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# Script for systemd service
# Wait for network to be up
while true
do
ping -c1 backend.chf.taler.net && break
sleep 1
done
# Get IP address of 'eth0'
IFC=eth0
IP=`ip -4 -f inet a show dev $IFC | grep inet | awk '{print $2}'`
# Show QR code for 45s, then launch taler-mdb
exec /home/pi/taler-mdb/src/qr-show -d "15 s" "$IP" -c /home/pi/snack.conf -- /home/pi/taler-mdb/src/taler-mdb -c /home/pi/snack.conf -t -L DEBUG 2>/home/pi/taler.log
|