errant ? in sed
use ipadm on SmartOS instead of ip