Quite possibly
But my point was a different one, namely not to execute the mv command twice. (If it was for a file, it would have overwritten the original amazon file on the second invocation. Since it's a directory, it would move the current directory as a subdirectory into the original on second invocation. And neither of that is really what you want
Oh, I just realized that the ln -sf probably also only works on files, so I guess a correct way is this:
Code:
mntroot rw
mkdir /mnt/us/screensaver
if [ -d /opt/amazon/screen_saver/600x800_ ]; then
mntroot ro
exit
fi
mv /opt/amazon/screen_saver/600x800 /opt/amazon/screen_saver/600x800_
ln -s /mnt/us/screensaver /opt/amazon/screen_saver/600x800
mntroot ro
or so.