--- alx-src/trunk/alxconfig-ng/init.d/alxsettings 2005/08/31 21:31:09 313 +++ alx-src/trunk/alxconfig-ng/init.d/alxsettings 2005/08/31 23:55:22 314 @@ -11,7 +11,7 @@ #%before: #%after: -# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.19 2005-08-31 21:31:09 niro Exp $ +# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.20 2005-08-31 23:55:22 niro Exp $ # checks first if the client was already configured and if it has an valid serial # if not it runs the autoconfiguration script @@ -220,7 +220,7 @@ # request a new serial; one command now (cause must be done in the same session) ALX_SERIAL=$(mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \ "insert into client_serials (mtime, mac) values('${CUR_MTIME}','${CUR_MAC}'); - select last_insert_id() + 1;") + select last_insert_id();") if [ "${ALX_SERIAL}" != NULL ] then