maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Moveroot (by Thomas Tanner) updated? (https://talk.maemo.org/showthread.php?t=49495)

rolan900d 2010-04-08 08:28

Moveroot (by Thomas Tanner) updated?
 
Hi gang,

I have been using the moveroot.sh tweak to move things for more root space!

Here is how mine looks:
Quote:

#!/bin/sh
# N900 script to safely free space on rootfs
# (c) 2010 by Thomas Tanner <tanner@maemory.com>
# licensed under GPLv3

# move root stuff to /home
dirs="usr/share/icons usr/share/nokia-maps usr/share/themes usr/share/fonts usr/share/locale usr/lib/locale var/lib/apt"
#optional: var/lib/dpkg
if test -d /home/var/cache/apt; then
# keep existing apt cache
rm -rf /var/cache/apt
ln -s /home/var/cache/apt /var/cache/apt
else
dirs="$dirs var/cache/apt"
fi
(cd / && du -sc $dirs)
for d in $dirs; do
test -L /$d && continue
echo moving /$d
rm -rf /home/$d
mkdir -p /home/$d
cp -a /$d /home/$d/..
rm -rf /$d
ln -s /home/$d /$d
done
Do you folks in here if this version has been updated?????


All times are GMT. The time now is 04:53.

vBulletin® Version 3.8.8