-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path001.patch
87 lines (80 loc) · 2.62 KB
/
001.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
diff --git a/etc/crontabs/root b/etc/crontabs/root
--- a/etc/crontabs/root
+++ b/etc/crontabs/root
@@ -9,4 +9,4 @@
# At every 10th minute.
*/10 * * * * /usr/bin/check_mediaplayer_status
# At 03:00.
-0 3 * * * /bin/ota slient # check ota
+# 0 3 * * * /bin/ota slient # check ota
diff --git a/etc/init.d/dropbear b/etc/init.d/dropbear
--- a/etc/init.d/dropbear
+++ b/etc/init.d/dropbear
@@ -53,8 +53,7 @@ dropbear_instance()
MaxAuthTries mdns ipaddrs
validate_section_dropbear "${1}" || {
- echo "validation failed"
- return 1
+ echo "validation failed and skip"
}
[ -n "${Interface}" ] && {
@@ -64,7 +63,6 @@ dropbear_instance()
}
}
- [ "${enable}" = "0" ] && return 1
PIDCOUNT="$(( ${PIDCOUNT} + 1))"
local pid_file="/var/run/${NAME}.${PIDCOUNT}.pid"
@@ -111,20 +109,12 @@ keygen()
load_interfaces()
{
config_get interface "$1" Interface
- config_get enable "$1" enable 1
-
- [ "${enable}" = "1" ] && interfaces=" ${interface} ${interfaces}"
+ interfaces=" ${interface} ${interfaces}"
}
start_service()
{
- ssh_en=`cat /data/ssh_en 2>/dev/null`
- ssh_en_bind=`cat /data/.ssh_en 2>/dev/null`
- ssh_en_tmp=`cat /tmp/ssh_en 2>/dev/null`
- channel=`micocfg_channel 2>/dev/null`
- if [ "$ssh_en" != "1" -a "$ssh_en_bind" != "1" -a "$ssh_en_tmp" != "1" -a "$channel" = "release" ]; then
- return 0
- fi
+ mkdir -p /data/etc/dropbear
[ -s /data/etc/dropbear/dropbear_rsa_host_key ] || keygen
. /lib/functions.sh
diff --git a/etc/inittab b/etc/inittab
--- a/etc/inittab
+++ b/etc/inittab
@@ -1,3 +1,3 @@
::sysinit:/etc/init.d/rcS S boot
::shutdown:/etc/init.d/rcS K shutdown
-::askconsole:/bin/login
+::askconsole:/bin/sh --login
diff --git a/etc/pam.d/common-auth b/etc/pam.d/common-auth
--- a/etc/pam.d/common-auth
+++ b/etc/pam.d/common-auth
@@ -8,10 +8,10 @@
# traditional Unix authentication mechanisms.
#
-auth sufficient libmico-pam.so
-account sufficient libmico-pam.so
+#auth sufficient libmico-pam.so
+#account sufficient libmico-pam.so
# here are the per-package modules (the "Primary" block)
-# auth [success=1 default=ignore] pam_unix.so nullok_secure
+ auth [success=1 default=ignore] pam_unix.so nullok_secure
# here's the fallback if no module succeeds
auth requisite pam_deny.so
# prime the stack with a positive return value if there isn't one already;
diff --git a/etc/shadow b/etc/shadow
--- a/etc/shadow
+++ b/etc/shadow
@@ -1,4 +1,4 @@
-root:$1$6QTE6j6z$lVroJsorN7M7F2h1mrdIS0:18128:0:99999:7:::
+root:$1$xiaoai$803hWklCcQwX7v5gYP6pB0:18128:0:99999:7:::
daemon:*:0:0:99999:7:::
ftp:*:0:0:99999:7:::
network:*:0:0:99999:7:::