aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/usr/libexec
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2016-04-18 21:53:07 +0200
committerJohn Crispin <blogic@openwrt.org>2016-04-18 21:53:07 +0200
commitdc929174095a00150de6a3e48d46355d24f223b9 (patch)
treef1106ba7c0d71f8072e5158c481f71aeee8db066 /package/base-files/files/usr/libexec
parent5e85ae9e4c85e9ec43f38aa350c5bd0f0e7bea2b (diff)
downloadupstream-dc929174095a00150de6a3e48d46355d24f223b9.tar.gz
upstream-dc929174095a00150de6a3e48d46355d24f223b9.tar.bz2
upstream-dc929174095a00150de6a3e48d46355d24f223b9.zip
image / basefiles: make console password configurable
Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package/base-files/files/usr/libexec')
-rwxr-xr-xpackage/base-files/files/usr/libexec/login.sh5
1 files changed, 5 insertions, 0 deletions
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