OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => User Request for Applications => Topic started by: rebski on August 13, 2005, 05:56:10 am

Title: Install To Sd Manager
Post by: rebski on August 13, 2005, 05:56:10 am
So many apps insist on being installed to Internal Storage that I have no room left.

What I need is a utility akin to Tab Manager which will identify the Internal Storage apps and let me select and move them to SD.
Title: Install To Sd Manager
Post by: CoreDump on August 13, 2005, 10:24:20 am
Quote
So many apps insist on being installed to Internal Storage that I have no room left.

What I need is a utility akin to Tab Manager which will identify the Internal Storage apps and let me select and move them to SD.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=91664\"][{POST_SNAPBACK}][/a][/div]

Not a bad idea IMO, could even be done in opie-sh  

Some light-weight bash scripting should do the trick:

Code: [Select]
# Untested!
for file in `cat /usr/lib/ipkg/info/$appname.list`
do
   ! test -d "`dirname "$file"`" && mkdir -p  "`dirname "$file"`"
   mv $file /media/sd/$file
done

After that you'd need to take care to copy ipkg's meta data about the package to SD and edit all pathes in $appname.list to match the new path.