convert atoi() to strtol() to handle hex notations
drwxr-xr-x - openwrt