View Single Post
Posts: 17 | Thanked: 3 times | Joined on Jan 2012
#274
Hey F2thaK,

i really like that you are providing us with all these customizations.

Running the FT-install.sh script on my phone nothing was copied to /usr/share/themes so it borked the theme big-time, it's really hard to find the WLAN settings when there's not graphics etc ;-)


Here is a improvement idea for the installation-script, basically doing some small checks and copying the actual-theme dir instead of moving/overwriting the whole /usr dir;
---

#!/bin/sh
# OLD ## mv -f /home/user/MyDocs/.config/ /
# OLD ## mv -f /home/user/MyDocs/usr/ /

FTDIR = /usr/share/themes/faster
TODAY = `date +"%F"`

if [ -d "$FTDIR" ]; then
echo -e "Looks like Faster Theme Directory exists, backup…"
mv /usr/share/themes/faster /usr/share/themes/faster.$TODAY
fi

echo -e "Copying theme files…"
cp -R /home/user/MyDocs/.config/ /
cp -R /home/user/MyDocs/usr/share/themes/faster/ /usr/share/themes/

if [ ! -d "$FTDIR" ]; then
echo -e "Something went wrong, the Faster theme directory does not exist… not setting new theme or rebooting."
exit
fi

echo -e "Cleaning up your house..."
rm -rf /home/user/MyDocs/usr/
rm -rf /home/user/MyDocs/.config/


echo -e "Setting faster theme and rebooting now… BYE!"
gconftool -s --type=string /meegotouch/theme/name faster
/sbin/reboot

---


Best Regards,
Larksyrm
 

The Following User Says Thank You to larksyrm For This Useful Post: