diff options
author | luka <luka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2016-05-10 22:36:25 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2016-06-19 19:27:24 +0200 |
commit | 0cb07cebeda2400473d4c472fb46c25066c870eb (patch) | |
tree | 2a7e2abcc0f1f869dcf57377fe9ca2184071596c /package/base-files | |
parent | 1c93c65a3631ede3fe67c405e7efa0a1381533b8 (diff) | |
download | master-187ad058-0cb07cebeda2400473d4c472fb46c25066c870eb.tar.gz master-187ad058-0cb07cebeda2400473d4c472fb46c25066c870eb.tar.bz2 master-187ad058-0cb07cebeda2400473d4c472fb46c25066c870eb.zip |
image / basefiles: make console password configurable
Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
Signed-off-by: John Crispin <john@phrozen.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49325 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rw-r--r-- | package/base-files/files/etc/config/system | 1 | ||||
-rw-r--r-- | package/base-files/files/etc/inittab | 2 | ||||
-rw-r--r-- | package/base-files/files/usr/libexec/login.sh | 5 |
3 files changed, 7 insertions, 1 deletions
diff --git a/package/base-files/files/etc/config/system b/package/base-files/files/etc/config/system index 3dfbfc4fc8..ea0b821f93 100644 --- a/package/base-files/files/etc/config/system +++ b/package/base-files/files/etc/config/system @@ -1,6 +1,7 @@ config system option hostname OpenWrt option timezone UTC + option ttylogin 0 config timeserver ntp list server 0.openwrt.pool.ntp.org diff --git a/package/base-files/files/etc/inittab b/package/base-files/files/etc/inittab index 7817185937..9820e7144b 100644 --- a/package/base-files/files/etc/inittab +++ b/package/base-files/files/etc/inittab @@ -1,3 +1,3 @@ ::sysinit:/etc/init.d/rcS S boot ::shutdown:/etc/init.d/rcS K shutdown -::askconsole:/bin/ash --login +::askconsole:/usr/libexec/login.sh diff --git a/package/base-files/files/usr/libexec/login.sh b/package/base-files/files/usr/libexec/login.sh new file mode 100644 index 0000000000..02ac9c828b --- /dev/null +++ b/package/base-files/files/usr/libexec/login.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +[ "$(uci get system.@system[0].ttylogin)" == 1 ] || exec /bin/ash --login + +exec /bin/login |