taler-mdb

GNU Taler Extensions and Integrations
Log | Files | Refs | Submodules | README | LICENSE

showIPoverQR.sh (418B)


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