base-files: remove ununsed login.sh
authorJohn Crispin <blogic@openwrt.org>
Tue, 19 Apr 2016 18:42:34 +0000 (20:42 +0200)
committerJohn Crispin <blogic@openwrt.org>
Tue, 19 Apr 2016 18:42:34 +0000 (20:42 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
package/base-files/files/bin/login.sh [deleted file]

diff --git a/package/base-files/files/bin/login.sh b/package/base-files/files/bin/login.sh
deleted file mode 100755 (executable)
index 754d290..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-# Copyright (C) 2006-2011 OpenWrt.org
-
-if ( ! grep -qsE '^root:[!x]?:' /etc/shadow || \
-     ! grep -qsE '^root:[!x]?:' /etc/passwd ) && \
-   [ -z "$FAILSAFE" ]
-then
-       echo "Login failed."
-       exit 0
-else
-cat << EOF
- === IMPORTANT ============================
-  Use 'passwd' to set your login password!
- ------------------------------------------
-EOF
-fi
-
-exec /bin/ash --login