Skip to content

Commit

Permalink
disable auto ota (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jialeicui authored Feb 7, 2024
1 parent 72434bc commit 81a7372
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/pack/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ for patch in $PATCHES; do
done

if [ -d "$BASE_DIR"/root ]; then
#rsync -av "$BASE_DIR"/root/ .
rsync -av "$BASE_DIR"/root/ .
fi

popd
Expand All @@ -39,5 +39,5 @@ mksquashfs squashfs-root rootfs.img -comp xz -b 256K -noappend && mv rootfs.img

popd

#rm -rf $WORK_DIR
rm -rf $WORK_DIR

27 changes: 12 additions & 15 deletions src/pack/patches/001.patch
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
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
index b2d2719..45eeb4f 100755
--- 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"
+ echo "validation failed and skip"
- return 1
+ echo "validation failed and skip"
}

[ -n "${Interface}" ] && {
@@ -64,7 +62,6 @@ dropbear_instance()
@@ -64,7 +63,6 @@ dropbear_instance()
}
}

- [ "${enable}" = "0" ] && return 1
PIDCOUNT="$(( ${PIDCOUNT} + 1))"
local pid_file="/var/run/${NAME}.${PIDCOUNT}.pid"

@@ -111,20 +108,12 @@ keygen()
@@ -111,20 +109,12 @@ keygen()
load_interfaces()
{
config_get interface "$1" Interface
Expand All @@ -44,7 +52,6 @@ index b2d2719..45eeb4f 100755

. /lib/functions.sh
diff --git a/etc/inittab b/etc/inittab
index 7a6c352..94276b8 100644
--- a/etc/inittab
+++ b/etc/inittab
@@ -1,3 +1,3 @@
Expand All @@ -53,7 +60,6 @@ index 7a6c352..94276b8 100644
-::askconsole:/bin/login
+::askconsole:/bin/sh --login
diff --git a/etc/pam.d/common-auth b/etc/pam.d/common-auth
index 111e32a..c610144 100644
--- a/etc/pam.d/common-auth
+++ b/etc/pam.d/common-auth
@@ -8,10 +8,10 @@
Expand All @@ -70,16 +76,7 @@ index 111e32a..c610144 100644
# 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/rc.d/S99dropbear b/etc/rc.d/S99dropbear
new file mode 120000
index 0000000..44af88d
--- /dev/null
+++ b/etc/rc.d/S99dropbear
@@ -0,0 +1 @@
+../init.d/dropbear
\ No newline at end of file
diff --git a/etc/shadow b/etc/shadow
index 9383c5d..058f9df 100644
--- a/etc/shadow
+++ b/etc/shadow
@@ -1,4 +1,4 @@
Expand Down

0 comments on commit 81a7372

Please sign in to comment.