change wz_post.sh execution order

Change the order in which wz_post.sh runs, before we used to execute right before mounting /configs, now we execute after /configs and /params, but before app_init.sh
This commit is contained in:
Alfonso Gamboa 2022-07-01 00:06:50 -07:00
parent d87d43241f
commit 5db0faf000

View File

@ -122,7 +122,7 @@ cp /etc/init.d/rcS /opt/wz_mini/tmp/.storage/rcS
echo "add wz_post inject to stock rcS" echo "add wz_post inject to stock rcS"
sed -i '/^".*/aset -x' /opt/wz_mini/tmp/.storage/rcS sed -i '/^".*/aset -x' /opt/wz_mini/tmp/.storage/rcS
sed -i '/^# Mount configs.*/i/opt/wz_mini/etc/init.d/wz_post.sh\n' /opt/wz_mini/tmp/.storage/rcS sed -i '/^# Run init script.*/i/opt/wz_mini/etc/init.d/wz_post.sh\n' /opt/wz_mini/tmp/.storage/rcS
sed -i '/sbin:/s/$/:\/opt\/wz_mini\/bin/' /opt/wz_mini/tmp/.storage/rcS sed -i '/sbin:/s/$/:\/opt\/wz_mini\/bin/' /opt/wz_mini/tmp/.storage/rcS
sed -i '/system\/\lib/s/$/:\/opt\/wz_mini\/lib/' /opt/wz_mini/tmp/.storage/rcS sed -i '/system\/\lib/s/$/:\/opt\/wz_mini\/lib/' /opt/wz_mini/tmp/.storage/rcS