Line 286... |
Line 286... |
286 |
if [ ! $DVD ] && [ ! $MINI ]; then
|
286 |
if [ ! $DVD ] && [ ! $MINI ]; then
|
287 |
# to save disk space
|
287 |
# to save disk space
|
288 |
|
288 |
|
289 |
mkdir -p /mini
|
289 |
mkdir -p /mini
|
290 |
|
290 |
|
- |
|
291 |
echo "Move some folders to /mini, to save disk space:"
|
- |
|
292 |
|
291 |
# move some dirs in /usr/share/doc to /mini
|
293 |
# move some dirs in /usr/share/doc to /mini
|
292 |
mkdir -p /mini/usr/share/doc
|
294 |
mkdir -p /mini/usr/share/doc
|
293 |
mv /usr/share/doc/openafs-* /mini/usr/share/doc 2>/dev/null
|
295 |
mv -v /usr/share/doc/openafs-* /mini/usr/share/doc 2>/dev/null
|
294 |
mv /usr/share/doc/gcc-* /mini/usr/share/doc 2>/dev/null
|
296 |
mv -v /usr/share/doc/gcc-* /mini/usr/share/doc 2>/dev/null
|
295 |
mv /usr/share/doc/pine-* /mini/usr/share/doc 2>/dev/null
|
297 |
mv -v /usr/share/doc/pine-* /mini/usr/share/doc 2>/dev/null
|
296 |
mv /usr/share/doc/ntp-* /mini/usr/share/doc 2>/dev/null
|
298 |
mv -v /usr/share/doc/ntp-* /mini/usr/share/doc 2>/dev/null
|
297 |
mv /usr/share/doc/cups-* /mini/usr/share/doc 2>/dev/null
|
299 |
mv -v /usr/share/doc/cups-* /mini/usr/share/doc 2>/dev/null
|
298 |
mv /usr/share/doc/testdisk-* /mini/usr/share/doc 2>/dev/null
|
300 |
mv -v /usr/share/doc/testdisk-* /mini/usr/share/doc 2>/dev/null
|
299 |
mv /usr/share/doc/htdig-* /mini/usr/share/doc 2>/dev/null
|
301 |
mv -v /usr/share/doc/htdig-* /mini/usr/share/doc 2>/dev/null
|
300 |
mv /usr/share/doc/gnome-vfs2-* /mini/usr/share/doc 2>/dev/null
|
302 |
mv -v /usr/share/doc/gnome-vfs2-* /mini/usr/share/doc 2>/dev/null
|
301 |
mv /usr/share/doc/bash-* /mini/usr/share/doc 2>/dev/null
|
303 |
mv -v /usr/share/doc/bash-* /mini/usr/share/doc 2>/dev/null
|
302 |
mv /usr/share/doc/exim-* /mini/usr/share/doc 2>/dev/null
|
304 |
mv -v /usr/share/doc/exim-* /mini/usr/share/doc 2>/dev/null
|
303 |
mv /usr/share/doc/ghostscript-* /mini/usr/share/doc 2>/dev/null
|
305 |
mv -v /usr/share/doc/ghostscript-* /mini/usr/share/doc 2>/dev/null
|
304 |
mv /usr/share/doc/gnuplot-* /mini/usr/share/doc 2>/dev/null
|
306 |
mv -v /usr/share/doc/gnuplot-* /mini/usr/share/doc 2>/dev/null
|
305 |
mv /usr/share/doc/ImageMagick-* /mini/usr/share/doc 2>/dev/null
|
307 |
mv -v /usr/share/doc/ImageMagick-* /mini/usr/share/doc 2>/dev/null
|
306 |
mv /usr/share/doc/isdn4k-utils-* /mini/usr/share/doc 2>/dev/null
|
308 |
mv -v /usr/share/doc/isdn4k-utils-* /mini/usr/share/doc 2>/dev/null
|
307 |
mv /usr/share/doc/sane-backends-* /mini/usr/share/doc 2>/dev/null
|
309 |
mv -v /usr/share/doc/sane-backends-* /mini/usr/share/doc 2>/dev/null
|
308 |
|
310 |
|
309 |
# move zipped java source to /mini, if j2sdk is installed
|
311 |
# move zipped java source to /mini, if j2sdk is installed
|
310 |
java_src=$( rpm -ql j2sdk 2>/dev/null | grep src.zip )
|
312 |
java_src=$( rpm -ql j2sdk 2>/dev/null | grep src.zip )
|
311 |
[ -e "$java_src" ] && mv "$java_src" /mini/
|
313 |
[ -e "$java_src" ] && mv -v "$java_src" /mini/
|
- |
|
314 |
|
312 |
fi
|
315 |
fi
|
313 |
|
316 |
|
314 |
### remove /etc/rc.d/init.d/login (should only be on Mini LiveCD)
|
317 |
### remove /etc/rc.d/init.d/login (should only be on Mini LiveCD)
|
315 |
## this will be obsolete soon.
|
318 |
## this will be obsolete soon.
|
316 |
rm -f /etc/rc.d/init.d/login
|
319 |
rm -f /etc/rc.d/init.d/login
|