-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfreerootfs
165 lines (157 loc) · 4.28 KB
/
freerootfs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
#!/bin/bash
# freerootfs
# versione 1.0
# Libera rootfs N900
clear
dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Connessione ad internet . ." && sleep 3
sudo dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"[ANY]" uint32:0 && sleep 5
dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Verifica della connessione in corso . ." && sleep 5
wget http://www.google.com -O /tmp/index.google && sleep 10
if [ ! -s /tmp/index.google ];then
dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Per cortesia assicurati di essere connesso prima di procedere . ." && sleep 5
else
rm -r /tmp/index.google
dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Connessione in corso . ." && sleep 5
echo "Avvio..."
sleep 5
echo "Script libera Rootfs"
fi
echo "Sei sicuro/a di voler proseguire? [s/n]"
read risposta
if [ "$risposta" == "s" ]
then
echo "OK, partiamo!"
echo
sleep 1
echo
echo
echo "Work in progress"
echo "..."
echo ".."
echo "."
sleep 2
echo "Icons ---> Opt"
echo
sleep 1
# Moving icons to /home/opt
mkdir -p /home/opt/usr/share/icons 2> /dev/null
cp -r /usr/share/icons/* /home/opt/usr/share/icons
rm -rf /usr/share/icons && sleep 2
ln -s /home/opt/usr/share/icons /usr/share/icons
echo "✔"
echo
echo "Video startup ---> Opt"
echo
sleep 1
# Moving video on start-up to /home/opt
mkdir -p /home/opt/usr/share/hildon-welcome 2> /dev/null
cp -r /usr/share/hildon-welcome/* /home/opt/usr/share/hildon-welcome
rm -rf /usr/share/hildon-welcome && sleep 2
ln -s /home/opt/usr/share/hildon-welcome /usr/share/hildon-welcome
echo "✔"
echo
echo "Pixmaps ---> Opt"
echo
sleep 1
# pixmaps to opt
mkdir -p /home/opt/usr/share/pixmaps 2> /dev/null
cp -r /usr/share/pixmaps/* /home/opt/usr/share/pixmaps
rm -r /usr/share/pixmaps && sleep 2
ln -s /home/opt/usr/share/pixmaps /usr/share/pixmaps
echo "✔"
echo
echo "Apt cache ---> Opt"
echo
sleep 1
# Moving 'apt cache' to /home/opt - Valid until [https://bugs.maemo.org/show_bug.cgi?id=5746 Bug 5746] is fixed.
mkdir -p /home/opt/var/cache/apt 2> /dev/null
cp -r /var/cache/apt/* /home/opt/var/cache/apt
rm -rf /var/cache/apt && sleep 2
ln -s /home/opt/var/cache/apt /var/cache/apt
echo "✔"
echo
echo "Locales ---> Opt"
echo
sleep 1
# Moving locales [http://talk.maemo.org/showpost.php?p=568370&postcount=11 Source]
cp -r /usr/share/locale /opt
rm -rf /usr/share/locale && sleep 2
ln -s /opt/locale /usr/share/locale
echo "✔"
echo
#Move some of the pre-installed applications into /opt
echo "Nokia Maps ---> Opt"
echo
sleep 1
cp -r /usr/share/nokia-maps /home/opt/
rm -rf /usr/share/nokia-maps && sleep 2
ln -s /home/opt/nokia-maps /usr/share/nokia-maps
echo "✔"
echo
echo "MicroB Engine ---> Opt"
echo
sleep 1
cp -r /usr/share/microb-engine /home/opt
rm -rf /usr/share/microb-engine && sleep 2
ln -s /home/opt/microb-engine /usr/share/microb-engine
echo "✔"
echo
echo "Tutorial Nokia ---> Opt"
echo
sleep 1
cp -r /usr/share/tutorial-applet /home/opt
rm -rf /usr/share/tutorial-applet && sleep 2
ln -s /home/opt/tutorial-applet /usr/share/tutorial-applet
echo "✔"
echo
echo "Flashplayer ---> Opt"
echo
sleep 1
cp -r /usr/lib/browser/plugins/libflashplayer.so /opt/usr/lib/
rm -rf /usr/lib/browser/plugins/libflashplayer.so && sleep 2
ln -s /opt/usr/lib/libflashplayer.so /usr/lib/browser/plugins/libflashplayer.so
echo "✔"
echo
echo "Ottimizzo Python..."
sleep 1
# echo "Per questo DEVI essere connnessi ad internet ! ! !"
sleep 5
echo "..."
echo ".."
apt-get install pymaemo-optify & apt-get clean
echo "✔"
echo
sleep 1
echo
echo
echo "fine!"
echo
echo
echo "------CHIUDI LA QWERTY------"
sleep 5
echo
echo "Riavvio N900!--------By adunanzav3x-------- Ciao Ciao!"
echo "..."
sleep 5
reboot
fi
if [ "$risposta" == "n" ]
then
echo "OK, hai detto no"
echo "Uscita script in..."
echo "5"
sleep 1
echo "4"
sleep 1
echo "3"
sleep 1
echo "2"
sleep 1
echo "1"
sleep 1
echo
echo "Arrivederci By adunanzav3x"
echo
sleep 2
clear
fi