dhcp-server script

global adapter ether2
ip/address/add interface=$adapter address=10.10.10.1/24
ip/dhcp-server/setup
$adapter

output:
Select interface to run DHCP server on

dhcp server interface: $adapter
input does not match any value of interface

how to fix?

Is all wrong.

Why dont you state what you want the script to accomplish in plain words and why first!!