[Steinar H. Gunderson] > get_serial_console() is a function defined further down in the script, I guess this is the problem. Shell script functions need to be defined before they are used. > which appearently can't be run in a subshell in ash like line 7 tries to > do: > > serial="$(get_serial_console)" It should work if the function is defined above the point where it is used.