linuxrc: move resume initialization code to resume_init()