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