Error setting password protect

hello, i tested the basic config for authorization, but get this error in console,

root@raspberrypi:~# ./vhusbdarm
VirtualHere USB Server is running...press CTRL-C to stop
/root/auth.sh: 19: [: unexpected operator
/root/auth.sh: 19: [: 34819d7beeabb9260a5c854bc85b3e44: unexpected operator
/root/auth.sh: 19: [: 34819d7beeabb9260a5c854bc85b3e44: unexpected operator
/root/auth.sh: 19: [: 34819d7beeabb9260a5c854bc85b3e44: unexpected operator

i jst tested how to work,

config fille call

clientAuthorization=/root/auth.sh "$VENDOR_ID$" "$PRODUCT_ID$" "$CLIENT_ID$" "$CLIENT_IP$" "$PRODUCT_SERIAL$" "$PASSWORD$" "$DEVPATH$" "$NICKNAME$" "$NUM_BINDINGS$"

cant make a simple script for that =/

#4

Thanks for the screen capture, yes it seems you have a blank line at the top of the script file, you cant do that, the interpreter needs to be the first line i.e #!/bin/sh

#5

u can test the config ? i send to u direction and userr/pass to check,

#6

The config works as i wrote it, tested it, and posted it at the link i mentioned above.

#7

ok, the forum have some error, i changed this

...
# "mypassword" = "34819d7beeabb9260a5c854bc85b3e44" as an MD5 hash
if [ "$6" == "34819d7beeabb9260a5c854bc85b3e44" ]; then
echo "Password ok"
....

to
....
# "mypassword" = "34819d7beeabb9260a5c854bc85b3e44" as an MD5 hash
if [ "$6" = "34819d7beeabb9260a5c854bc85b3e44" ]; then
echo "Password ok"
....

changed "==" to "=" and works,

now don't have any error.,