|
|
2009-12-15
, 07:13
|
|
Posts: 543 |
Thanked: 181 times |
Joined on Aug 2009
@ Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
|
#2
|
|
|
2009-12-15
, 07:43
|
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#3
|
| The Following User Says Thank You to ossipena For This Useful Post: | ||
|
|
2009-12-15
, 14:50
|
|
|
Posts: 2,535 |
Thanked: 6,681 times |
Joined on Mar 2008
@ UK
|
#4
|
|
|
2009-12-15
, 15:28
|
|
Posts: 110 |
Thanked: 32 times |
Joined on Dec 2009
@ Moon
|
#5
|
|
|
2009-12-15
, 16:03
|
|
Posts: 207 |
Thanked: 119 times |
Joined on Nov 2009
@ Pittsburgh, PA, USA
|
#6
|
#Create folder in /opt for /usr/share
mkdir -p /opt/usr/share
#enter in /usr folder
cd /usr/
#cycle. FILE will have different value depend from step
for FILE in games include local src var
do
#move folder (games include local src var) to /opt/usr
mv $FILE /opt/usr/
#create soft link for moved folders
ln -s /opt/usr/$FILE /usr/
done
#end of cycle
mkdir -p /opt/var/cache
cd /var/cache/
for FILE in apt
do
mv $FILE /opt/var/cache/
ln -s /opt/var/cache/$FILE /var/cache/
done
cd /usr/share/
for FILE in fonts icons locale mime nokia-maps pixmaps sounds themes tutorial-applet zoneinfo
do
mv $FILE /opt/usr/share/
ln -s /opt/usr/share/$FILE /usr/share/
done
| The Following User Says Thank You to mikhmv For This Useful Post: | ||
|
|
2009-12-15
, 18:00
|
|
Posts: 118 |
Thanked: 45 times |
Joined on Dec 2009
@ Germany
|
#7
|
. I rather think I go with the shell script you provided (which is also mentioned in the other thread).
.
. Which isn't that dumb I think.
|
|
2009-12-15
, 19:18
|
|
Posts: 118 |
Thanked: 45 times |
Joined on Dec 2009
@ Germany
|
#8
|
#Create folder in /opt for /usr/share
mkdir -p /opt/usr/share
#enter in /usr folder
cd /usr/
#cycle. FILE will have different value depend from step
for FILE in games include local src var
do
#if it is no symlink
if [[ -h $FILE ]]
then
echo "Omitting $FILE because it is a symbolic link"
else
#move folder (games include local src var) to /opt/usr
mv $FILE /opt/usr/
#create soft link for moved folders
ln -s /opt/usr/$FILE /usr/
fi
done
#end of cycle
mkdir -p /opt/var/cache
cd /var/cache/
for FILE in apt
do
if [ -h $FILE ]
then
echo "Omitting $FILE because it is a symbolic link"
else
mv $FILE /opt/var/cache/
ln -s /opt/var/cache/$FILE /var/cache/
fi
done
cd /usr/share/
for FILE in fonts icons locale mime nokia-maps pixmaps sounds themes tutorial-applet zoneinfo
do
if [ -h $FILE ]
then
echo "Omitting $FILE because it is a symbolic link"
else
mv $FILE /opt/usr/share/
ln -s /opt/usr/share/$FILE /usr/share/
fi
done
exit 0
. But I did not rerun it yet, because there was no need. After I've installed some apps I will try a rerun (dunno when that will be, but I'll post that).
| The Following User Says Thank You to emesem For This Useful Post: | ||
|
|
2009-12-16
, 06:27
|
|
Posts: 118 |
Thanked: 45 times |
Joined on Dec 2009
@ Germany
|
#9
|
for $FILE in in `ls`
|
|
2009-12-16
, 19:46
|
|
Posts: 207 |
Thanked: 119 times |
Joined on Nov 2009
@ Pittsburgh, PA, USA
|
#10
|
Would it also be possible to say
Or would that "crash" something? So that means, could I symlink all directories or should I only try it with certain things (like the script does) to don't mess up the system?Code:for $FILE in in `ls`
for FILE in $(ls) do echo $FILE done
![]() |
| Tags |
| radioactive |
| Thread Tools | |
|
after browsing the web a while I just figured out that rootfs causes much trouble (isn't that hard to figure it out, right
Btw. I'm no gonna install as many apps as I like - hopfully this time I don't have to flash my device again :|.