From e126f0027d9c205b5fdeb787c4272da61336b0db Mon Sep 17 00:00:00 2001 From: Philipp Mundhenk Date: Sun, 29 Oct 2023 14:40:55 +0100 Subject: [PATCH] added some debugging output --- files/runScanner.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/files/runScanner.sh b/files/runScanner.sh index b1ccbc1..0d0047b 100755 --- a/files/runScanner.sh +++ b/files/runScanner.sh @@ -17,6 +17,7 @@ chmod -R 777 /opt/brother subnet=$(echo $IPADDRESS | sed 's/\([0-9]*\.[0-9]*\.\)[0-9]*\.[0-9]*/\1/') interface=$(ip addr show | grep -B10 $subnet | grep mtu | tail -1 | sed 's/[0-9]*: \(.*\): .*/\1/') echo "eth=$interface" >> /opt/brother/scanner/brscan-skey/brscan-skey.config +echo "using interface: $interface" su - $USERNAME -c "/usr/bin/brsaneconfig4 -a name=$NAME model=$MODEL ip=$IPADDRESS" su - $USERNAME -c "/usr/bin/brscan-skey"