summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/usr/libexec/login.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/usr/libexec/login.sh')
-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