use an if block on the whole configure command
drwxr-xr-x - openwrt