--- trunk/usbip/usbipdevd-sql 2007/05/15 14:39:55 185 +++ trunk/usbip/usbipdevd-sql 2007/05/15 14:52:40 186 @@ -6,7 +6,7 @@ CLIENTIP=$(/sbin/ifconfig eth0 | sed -n '/addr:/s/ [^r]*..//gp') # create a new ip entry if none exist -if [[ -z $(mysqldo "select ip from clients where ip='${CLIENTIP}") ]] +if [[ -z $(mysqldo "select ip from clients where ip='${CLIENTIP}'") ]] then mysqldo "insert into clients (ip,connected) values('${CLIENTIP}','0')" fi