Skip to content

Commit

Permalink
added some debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMundhenk committed Oct 29, 2023
1 parent c7138d8 commit e126f00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions files/runScanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e126f00

Please sign in to comment.