generic: boot scripts: pull these out as they are the same

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>