From: John Crispin Date: Wed, 13 Mar 2013 18:11:00 +0000 (+0000) Subject: make sure the console works when using procd as our pid 1 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=043d56b646019995c8fb4be2dbf36c204ae75392;hp=9faa312dbb3391ffb97516802331d86da2b2ee6b;p=openwrt%2Fstaging%2Fyousong.git make sure the console works when using procd as our pid 1 Signed-off-by: John Crispin SVN-Revision: 36000 --- diff --git a/target/linux/ar71xx/base-files.mk b/target/linux/ar71xx/base-files.mk index d6682bd388..5ee4dbd6d8 100644 --- a/target/linux/ar71xx/base-files.mk +++ b/target/linux/ar71xx/base-files.mk @@ -1,5 +1,7 @@ define Package/base-files/install-target rm -f $(1)/etc/config/network + $(if $(CONFIG_PROCD_INIT),rm -f $(1)/etc/uci-defaults/00_inittab-console-fixup) + $(if $(CONFIG_PROCD_INIT),echo "::askconsole:/bin/ash --login" >> $(1)/etc/inittab) endef