firstboot: properly integrate firstboot.
firstboot is being used by LuCI and is expected to at least support '-y' to avoid reading from stdin.
This commit also makes firstboot not to reboot unless the '-r' switch is used.
firstboot is being used by LuCI and is expected to at least support '-y' to avoid reading from stdin.
This commit also makes firstboot not to reboot unless the '-r' switch is used.