View Single Post
Old 03-13-2012, 09:19 PM   #12
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677485
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
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.
ixtab is offline   Reply With Quote