Permalink
Browse files

base-files: Add nommu specific versions of some files

Mainly to use hush instead of ash
  • Loading branch information...
larsclausen committed Jul 27, 2011
1 parent 9e8d4a5 commit 79a63f84723ff5403d3e00c243131a6ca087ebb4
@@ -424,6 +424,9 @@ Build/Compile = $(Build/Compile/Default)
define Package/base-files/install
$(CP) ./files/* $(1)/
+ $(if $(CONFIG_NOMMU), \
+ $(CP) ./files-nommu/* $(1)/ \
+ )
if [ -d $(GENERIC_PLATFORM_DIR)/base-files/. ]; then \
$(CP) $(GENERIC_PLATFORM_DIR)/base-files/* $(1)/; \
fi
@@ -0,0 +1,16 @@
+#!/bin/sh
+# Copyright (C) 2006-2010 OpenWrt.org
+
+if grep -qs '^root:[^!]' /etc/passwd /etc/shadow && [ -z "$FAILSAFE" ]; then
+ echo "Login failed."
+ exit 0
+else
+cat << EOF
+ === IMPORTANT ============================
+ Use 'passwd' to set your login password
+ this will disable telnet and enable SSH
+ ------------------------------------------
+EOF
+fi
+
+exec /bin/hush
@@ -0,0 +1,5 @@
+::sysinit:/etc/init.d/rcS S boot
+::shutdown:/etc/init.d/rcS K shutdown
+tts/0::askfirst:/bin/hush
+ttyS0::askfirst:/bin/hush
+tty1::askfirst:/bin/hush
@@ -0,0 +1,5 @@
+root:!:0:0:root:/root:/bin/hush
+ftp:*:55:55:ftp:/home/ftp:/bin/false
+network:*:101:101:network:/var:/bin/false
+nobody:*:65534:65534:nobody:/var:/bin/false
+daemon:*:65534:65534:daemon:/var:/bin/false

0 comments on commit 79a63f8

Please sign in to comment.