target: Make TARGET_SERIAL independent of GRUB configuration
[openwrt/staging/nbd.git] / target / linux / x86 / base-files.mk
1 GRUB_SERIAL:=$(call qstrip,$(CONFIG_TARGET_SERIAL))
2 ifeq ($(GRUB_SERIAL),)
3 $(error This platform requires CONFIG_TARGET_SERIAL be set!)
4 endif
5
6 define Package/base-files/install-target
7 $(SED) "s#@GRUB_SERIAL@#$(GRUB_SERIAL)#" $(1)/etc/inittab
8 endef