z1022 wrote:- It is because you use
rm -rf /opt/*
rm -rf /opt/.[^.]*
rmdir /opt
after move_to_optware_opt
You're absolutely right! Forgot about the rm -rf in move_to_optware_opt. First I did all the moving and deleting in it but then decided to let it do what it sais, moving only.
z1022 wrote:I know the location of optware.sh. However, I cannot find where you run optware.sh in your script.
It gets executed by /opt/etc/profile. That script runs through all the scripts in /opt/etc/profile.d and runs them.
z1022 wrote:I remove the old version and install and reboot
Okey, perfect way to test it.