adjust network init scripts path

This commit is contained in:
Alfonso Gamboa
2022-07-31 21:37:18 -07:00
parent c733961946
commit db71bea0ad
14 changed files with 29 additions and 15 deletions

View File

@@ -1,5 +1,10 @@
#!/bin/sh
#init.d/ = early boot, before inittab is run
#rc.d/ = runs after /linuxrc, but before app_init.sh
#network.d/ runs after app_init.sh, and after wlan hw is ready
#rc.local.d/ = runs after app_init.sh and network has acquired an address
###This file is run by switch_root, from the initramfs in the kernel.
LOG_NAME=/opt/wz_mini/log/wz_init
if [[ -e $LOG_NAME.log || -L $LOG_NAME.log ]] ; then

View File

@@ -1,10 +1,18 @@
#!/bin/sh
source /opt/wz_mini/etc/rc.common
source /opt/wz_mini/wz_mini.conf
remote() {
wait_for_wlan_ip
if [[ "$REMOTE_SPOTLIGHT" == "true" ]]; then
/opt/wz_mini/bin/socat pty,link=/dev/ttyUSB0,raw tcp:"$REMOTE_SPOTLIGHT_HOST":9000 &
echo "Remote accessory support enabled"
else
echo "Remote accessory support disabled"
fi
}
remote &

View File

@@ -10,7 +10,7 @@ fi
wait_for_wlan
for i in /opt/wz_mini/etc/network/S??* ;do
for i in /opt/wz_mini/etc/network.d/S??* ;do
# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue
@@ -31,6 +31,7 @@ for i in /opt/wz_mini/etc/network/S??* ;do
esac
done
wait_for_wlan_ip
for i in /opt/wz_mini/etc/rc.local.d/* ;do

View File

@@ -1 +1 @@
Sun Jul 31 09:18:03 PM PDT 2022
Sun Jul 31 09:35:00 PM PDT 2022