in reply to Back in the saddle...

It would seem as if `/usr/etc/ifconfig ec0` isn't returning any data and so $ifconfig is still undef. Try to run /usr/etc/ifconfig ec0 from the command line and see what the output is.

Also, I believe the "use of undefined variable" error is actually just a warning and not fatal.