summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-01-18 12:42:53 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-01-18 12:42:53 +0000
commit560c530e279fb8ed2a4a23ba371a83870aacb71a (patch)
treeb84fd84fae0b742a76e5d875482713db4c2ebbd2 /target/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup
parent4f5ccb4de32ae75233b97c8b599f965479c22066 (diff)
all targets: use numerically prefixed uci-defaults file names to better control order of execution
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35217 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup27
1 files changed, 0 insertions, 27 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup b/target/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup
deleted file mode 100755
index 4098b37a7..000000000
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2011 OpenWrt.org
-#
-
-enable_console_login() {
- local cons=$1
- local initline="$cons::askfirst:/bin/ash --login"
-
- grep -qs "^$initline" /etc/inittab || {
- echo "$initline" >> /etc/inittab
- sync
- kill -HUP 1
- }
-}
-
-inittab_console_fixup() {
- for cons in ttyS0 ttyATH0; do
- grep -qs "console=$cons" /proc/cmdline && {
- enable_console_login $cons
- }
- done
-}
-
-inittab_console_fixup
-
-exit 0