diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-18 12:42:53 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-18 12:42:53 +0000 |
commit | 3a2cccda2eb45c6b55ef33c73a4af2c88935f383 (patch) | |
tree | 42f8f7a8c928a04176ec598da4684b0d778e216d /target/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup | |
parent | 0de21d9747688e37cc9a9fb92c41abcdde9ef09f (diff) | |
download | upstream-3a2cccda2eb45c6b55ef33c73a4af2c88935f383.tar.gz upstream-3a2cccda2eb45c6b55ef33c73a4af2c88935f383.tar.bz2 upstream-3a2cccda2eb45c6b55ef33c73a4af2c88935f383.zip |
all targets: use numerically prefixed uci-defaults file names to better control order of execution
SVN-Revision: 35217
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup | 27 |
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 4098b37a71..0000000000 --- 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 |