rename files

This commit is contained in:
Alfonso Gamboa 2022-05-28 20:38:47 -07:00
parent 3607037f50
commit da8b3af8a2
3 changed files with 5 additions and 5 deletions

View File

@ -103,9 +103,9 @@ mkdir /opt/wz_mini/tmp/.storage
echo "copy stock rcS" echo "copy stock rcS"
cp /etc/init.d/rcS /opt/wz_mini/tmp/.storage/rcS cp /etc/init.d/rcS /opt/wz_mini/tmp/.storage/rcS
echo "add v3_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/v3_post.sh\n' /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 '/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

View File

@ -2,7 +2,7 @@
### This file is called by /etc/init.d/rcS, and is run before app_init.sh ### This file is called by /etc/init.d/rcS, and is run before app_init.sh
exec 1> /opt/wz_mini/log/v3_post.log 2>&1 exec 1> /opt/wz_mini/log/vz_post.log 2>&1
set -x set -x
@ -15,7 +15,7 @@ export WZMINI_CFG=/opt/wz_mini/wz_mini.conf
[ -f $WZMINI_CFG ] && source $WZMINI_CFG [ -f $WZMINI_CFG ] && source $WZMINI_CFG
echo "welcome to v3_post.sh" echo "welcome to wz_post.sh"
echo "PID $$" echo "PID $$"
if [ -d /lib/modules ]; then if [ -d /lib/modules ]; then

View File

@ -14,7 +14,7 @@ reboot
upgrade_mode_start() { upgrade_mode_start() {
exec 1>> /opt/v3_upgrade.log 2>&1 exec 1>> /opt/wz_upgrade.log 2>&1
set -x set -x
echo UPGRADE MODE echo UPGRADE MODE
umount /opt/wz_mini/tmp umount /opt/wz_mini/tmp