mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-09 23:18:20 +00:00
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:
parent
d87d43241f
commit
5db0faf000
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user