aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files.mk
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-03-13 18:11:00 +0000
committerJohn Crispin <blogic@openwrt.org>2013-03-13 18:11:00 +0000
commitdcb02ff0806c752b039ceaac7990fdac0e96e909 (patch)
tree6a4ea73eb5c6059b11e542851606e9f75e08b4c8 /target/linux/ar71xx/base-files.mk
parenta95bb0d75b78b39df434d3014fe61f9608063aee (diff)
downloadupstream-dcb02ff0806c752b039ceaac7990fdac0e96e909.tar.gz
upstream-dcb02ff0806c752b039ceaac7990fdac0e96e909.tar.bz2
upstream-dcb02ff0806c752b039ceaac7990fdac0e96e909.zip
[ar71xx] make sure the console works when using procd as our pid 1
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36000 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files.mk')
-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 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