From d2a6c079e1a9752178cf09104ff9a8fe9ea61911 Mon Sep 17 00:00:00 2001 From: jjm2473 <1129525450@qq.com> Date: Sun, 21 Apr 2019 15:40:31 +0800 Subject: [PATCH] delay android booting for trying ipv6. --- root/etc/init.d/android | 12 ++++++++++++ root/etc/preinit | 3 --- root/etc/rc.d/S30android | 1 + root/etc/rc.d/S96led | 1 - 4 files changed, 13 insertions(+), 4 deletions(-) create mode 100755 root/etc/init.d/android create mode 120000 root/etc/rc.d/S30android delete mode 120000 root/etc/rc.d/S96led diff --git a/root/etc/init.d/android b/root/etc/init.d/android new file mode 100755 index 0000000..97e1f30 --- /dev/null +++ b/root/etc/init.d/android @@ -0,0 +1,12 @@ +#!/bin/sh /etc/rc.common +# 2019 jjm2473 porting openwrt 18.06.2+ to zidoo z9s + +START=30 + +boot() { + touch /android/.coldplug_done + touch /rom/android/.coldplug_done + # fix hostname changed by android + sleep 3 + /etc/init.d/system reload +} diff --git a/root/etc/preinit b/root/etc/preinit index f7153ca..5f1ca15 100755 --- a/root/etc/preinit +++ b/root/etc/preinit @@ -1,14 +1,11 @@ #!/bin/sh # Copyright (C) 2006-2016 OpenWrt.org # Copyright (C) 2010 Vertical Communications -# 2019 jjm2473 porting openwrt 18.06.2+ to zidoo z9s [ -z "$PREINIT" ] && exec /sbin/init export PATH="/usr/sbin:/usr/bin:/sbin:/bin" -touch /android/.coldplug_done || touch /rom/android/.coldplug_done - . /lib/functions.sh . /lib/functions/preinit.sh . /lib/functions/system.sh diff --git a/root/etc/rc.d/S30android b/root/etc/rc.d/S30android new file mode 120000 index 0000000..950c6ac --- /dev/null +++ b/root/etc/rc.d/S30android @@ -0,0 +1 @@ +../init.d/android \ No newline at end of file diff --git a/root/etc/rc.d/S96led b/root/etc/rc.d/S96led deleted file mode 120000 index f10e202..0000000 --- a/root/etc/rc.d/S96led +++ /dev/null @@ -1 +0,0 @@ -../init.d/led \ No newline at end of file