diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/base-files/files/etc/config/system | 1 | ||||
-rw-r--r-- | package/base-files/files/etc/inittab | 2 | ||||
-rwxr-xr-x | package/base-files/files/usr/libexec/login.sh | 5 | ||||
-rw-r--r-- | package/utils/busybox/Config-defaults.in | 4 |
4 files changed, 9 insertions, 3 deletions
diff --git a/package/base-files/files/etc/config/system b/package/base-files/files/etc/config/system index 20517f9a53..80c3f9b0a8 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 lede 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 100755 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 diff --git a/package/utils/busybox/Config-defaults.in b/package/utils/busybox/Config-defaults.in index ee42fa12f0..5240616972 100644 --- a/package/utils/busybox/Config-defaults.in +++ b/package/utils/busybox/Config-defaults.in @@ -1212,10 +1212,10 @@ config BUSYBOX_DEFAULT_GETTY default n config BUSYBOX_DEFAULT_LOGIN bool - default n + default y config BUSYBOX_DEFAULT_LOGIN_SESSION_AS_CHILD bool - default n + default y config BUSYBOX_DEFAULT_LOGIN_SCRIPTS bool default n |