mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-08-09 20:14:04 +00:00
adjust network init scripts path
This commit is contained in:
@@ -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
|
||||
|
@@ -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 &
|
@@ -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
|
||||
|
||||
|
@@ -1 +1 @@
|
||||
Sun Jul 31 09:18:03 PM PDT 2022
|
||||
Sun Jul 31 09:35:00 PM PDT 2022
|
||||
|
Reference in New Issue
Block a user