summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-03-13 18:11:00 +0000
committerJohn Crispin <john@openwrt.org>2013-03-13 18:11:00 +0000
commit043d56b646019995c8fb4be2dbf36c204ae75392 (patch)
treefa6ce470d2d2e9a219f341f0e1d944005215ae14 /target/linux/ar71xx
parent9faa312dbb3391ffb97516802331d86da2b2ee6b (diff)
downloadmtk-20170518-043d56b646019995c8fb4be2dbf36c204ae75392.zip
mtk-20170518-043d56b646019995c8fb4be2dbf36c204ae75392.tar.gz
mtk-20170518-043d56b646019995c8fb4be2dbf36c204ae75392.tar.bz2
make sure the console works when using procd as our pid 1
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36000
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/base-files.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files.mk b/target/linux/ar71xx/base-files.mk
index d6682bd..5ee4dbd 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