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 =/
.
Seems like your bash script is not correct. Just copy exactly what is in this page https://www.virtualhere.com/authorization and it will work.
same error
i copy exactly from the page info, and same error,
https://ibb.co/JB4vQWg
idk what happend, sorry =/
.
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
u can test the config ? i
u can test the config ? i send to u direction and userr/pass to check,
.
The config works as i wrote it, tested it, and posted it at the link i mentioned above.
Fixed
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.,