Subversion Repositories livecd

Rev

Rev 222 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 222 Rev 230
Line 1... Line -...
1
 
-
 
2
 
-
 
3
#!/bin/bash
1
#!/bin/bash
4
#
2
#
5
################################################################
3
################################################################
6
#
4
#
7
# Used to build a MINI LiveCD
5
# Used to build a MINI LiveCD
Line 147... Line 145...
147
    LOCALUSER=sluser
145
    LOCALUSER=sluser
148
fi
146
fi
149
 
147
 
150
 
148
 
151
### -----------------------------------------------------------
149
### -----------------------------------------------------------
152
### Modifications for Mini LivdCD
150
### Modifications for Mini LiveCD
153
if [ ! $RESTORE ]; then
151
if [ ! $RESTORE ]; then
154
    
152
    
155
    if [ ! $NOMOVE ]; then
153
    if [ ! $NOMOVE ]; then
156
	echo
154
	echo
157
	echo "--------------------------------------------"
155
	echo "--------------------------------------------"
Line 166... Line 164...
166
	    mkdir -p /mini/${base}
164
	    mkdir -p /mini/${base}
167
	    mv ${folder} /mini${base}
165
	    mv ${folder} /mini${base}
168
	done
166
	done
169
    fi
167
    fi
170
 
168
 
171
    ### emacs-21.3 and emacs are hard links (and large 4.3MB) 
-
 
172
    if [ -f /usr/bin/emacs-21.3 ]; then
-
 
173
	rm /usr/bin/emacs-21.3
-
 
174
	ln -s emacs /usr/bin/emacs-21.3
-
 
175
    fi
-
 
176
 
-
 
177
    ### run updatedb
169
    ### run updatedb
178
    echo "Run updatedb..."
170
    echo "Run updatedb..."
179
    . /etc/updatedb.conf 2>/dev/null
171
    . /etc/updatedb.conf 2>/dev/null
180
    rpm -q mlocate >/dev/null
172
    rpm -q mlocate >/dev/null
181
    if [ "$?" = "0" ]; then
173
    if [ "$?" = "0" ]; then
Line 204... Line 196...
204
    ### /etc/rc.d/init.d/login
196
    ### /etc/rc.d/init.d/login
205
    ### Provides directly login over xinit
197
    ### Provides directly login over xinit
206
    cp -a customize/login /etc/rc.d/init.d/login
198
    cp -a customize/login /etc/rc.d/init.d/login
207
    chmod +x /etc/rc.d/init.d/login
199
    chmod +x /etc/rc.d/init.d/login
208
    
200
    
209
    ### modify /etc/rc.d/init.d/runlast
201
    ### modify /etc/rc.d/init.d/runlast: add /etc/init.d/login at the end
210
    RUNLAST=/etc/rc.d/init.d/runlast
202
    RUNLAST=/etc/rc.d/init.d/runlast
211
    echo >> $RUNLAST
203
    echo >> $RUNLAST
212
    echo "### execute /etc/init.d/login for direct login" >> $RUNLAST
204
    echo "### execute /etc/init.d/login for direct login" >> $RUNLAST
213
    echo "/etc/init.d/login" >> $RUNLAST
205
    echo "/etc/init.d/login" >> $RUNLAST
214
    echo >> $RUNLAST
206
    echo >> $RUNLAST
215
 
207
 
216
    ### remove kde profile
-
 
217
    rm -f /etc/profile.d/kde*
-
 
218
 
-
 
219
    ### configure ICEWM
-
 
220
    cp -a customize/icewm/winoptions /usr/share/icewm/
-
 
221
    cp -a customize/icewm/toolbar /usr/share/icewm/
-
 
222
    cp -a customize/icewm/menu /usr/share/icewm/
-
 
223
 
-
 
224
    ### default theme for ICEWM
-
 
225
    rpm -q icewm-SL-theme >/dev/null 2>&1
-
 
226
    if [ "$?" = "0" ]; then
-
 
227
	echo "Theme=SL/default.theme" > /usr/share/icewm/theme
-
 
228
    fi
-
 
229
 
-
 
230
    ### delete "mozilla" lines, if no mozilla is installed
-
 
231
    if [ ! -x /usr/bin/mozilla ]; then
-
 
232
	sed -i "/mozilla/d" /usr/share/icewm/winoptions
-
 
233
	sed -i "/mozilla/d" /usr/share/icewm/toolbar
-
 
234
	sed -i "/mozilla/d" /usr/share/icewm/menu	
-
 
235
    fi
-
 
236
 
-
 
237
    ### icons for icewm
-
 
238
    cp -a /usr/share/pixmaps/qtparted.xpm /usr/share/icewm/icons/ 2>/dev/null
-
 
239
    cp -a /usr/share/gftp/gftp.xpm /usr/share/icewm/icons/ 2>/dev/null
-
 
240
 
-
 
241
    ### no rdesktop menu entry on non PSI systems
-
 
242
    if [ ! $PSI ];then
-
 
243
	sed -i "/prog Rdesktop.*/d" /usr/share/icewm/menu
-
 
244
    fi
-
 
245
 
-
 
246
    ### create some pam.d files
-
 
247
    # cp -a /etc/pam.d/system-config-display /etc/pam.d/partimage
-
 
248
 
-
 
249
 
208
 
250
### -----------------------------------------------------------
209
### -----------------------------------------------------------
251
### Restores some modifications
210
### Restores some modifications
252
else
211
else
253
 
212