kernel: add nvram check into the init script of ramfs

Signed-of-by: Jack Tan <jiankemeng@gmail.com>