Line 290... |
Line 290... |
290 |
echo "Move some folders to /mini, to save disk space:"
|
290 |
echo "Move some folders to /mini, to save disk space:"
|
291 |
mkdir -p /mini
|
291 |
mkdir -p /mini
|
292 |
|
292 |
|
293 |
# move some dirs in /usr/share/doc to /mini
|
293 |
# move some dirs in /usr/share/doc to /mini
|
294 |
mkdir -p /mini/usr/share/doc
|
294 |
mkdir -p /mini/usr/share/doc
|
295 |
mv -v /usr/share/doc/openafs-* /mini/usr/share/doc 2>/dev/null
|
- |
|
296 |
mv -v /usr/share/doc/gcc-* /mini/usr/share/doc 2>/dev/null
|
- |
|
297 |
mv -v /usr/share/doc/pine-* /mini/usr/share/doc 2>/dev/null
|
- |
|
298 |
mv -v /usr/share/doc/ntp-* /mini/usr/share/doc 2>/dev/null
|
- |
|
299 |
mv -v /usr/share/doc/cups-* /mini/usr/share/doc 2>/dev/null
|
- |
|
300 |
mv -v /usr/share/doc/testdisk-* /mini/usr/share/doc 2>/dev/null
|
- |
|
301 |
mv -v /usr/share/doc/htdig-* /mini/usr/share/doc 2>/dev/null
|
- |
|
302 |
mv -v /usr/share/doc/gnome-vfs2-* /mini/usr/share/doc 2>/dev/null
|
- |
|
303 |
mv -v /usr/share/doc/bash-* /mini/usr/share/doc 2>/dev/null
|
295 |
mv -v /usr/share/doc/bash-* /mini/usr/share/doc 2>/dev/null
|
- |
|
296 |
mv -v /usr/share/doc/cups-* /mini/usr/share/doc 2>/dev/null
|
304 |
mv -v /usr/share/doc/exim-* /mini/usr/share/doc 2>/dev/null
|
297 |
mv -v /usr/share/doc/exim-* /mini/usr/share/doc 2>/dev/null
|
- |
|
298 |
mv -v /usr/share/doc/gawk-* /mini/usr/share/doc 2>/dev/null
|
- |
|
299 |
mv -v /usr/share/doc/gcc-* /mini/usr/share/doc 2>/dev/null
|
- |
|
300 |
mv -v /usr/share/doc/gdm-* /mini/usr/share/doc 2>/dev/null
|
305 |
mv -v /usr/share/doc/ghostscript-* /mini/usr/share/doc 2>/dev/null
|
301 |
mv -v /usr/share/doc/ghostscript-* /mini/usr/share/doc 2>/dev/null
|
- |
|
302 |
mv -v /usr/share/doc/gnome-vfs2-* /mini/usr/share/doc 2>/dev/null
|
306 |
mv -v /usr/share/doc/gnuplot-* /mini/usr/share/doc 2>/dev/null
|
303 |
mv -v /usr/share/doc/gnuplot-* /mini/usr/share/doc 2>/dev/null
|
- |
|
304 |
mv -v /usr/share/doc/initscripts-* /mini/usr/share/doc 2>/dev/null
|
- |
|
305 |
mv -v /usr/share/doc/iproute-* /mini/usr/share/doc 2>/dev/null
|
- |
|
306 |
mv -v /usr/share/doc/libsigc++20-* /mini/usr/share/doc 2>/dev/null
|
- |
|
307 |
mv -v /usr/share/doc/m2crypto-* /mini/usr/share/doc 2>/dev/null
|
- |
|
308 |
mv -v /usr/share/doc/ntp-* /mini/usr/share/doc 2>/dev/null
|
- |
|
309 |
mv -v /usr/share/doc/openafs-* /mini/usr/share/doc 2>/dev/null
|
- |
|
310 |
mv -v /usr/share/doc/pine-* /mini/usr/share/doc 2>/dev/null
|
- |
|
311 |
mv -v /usr/share/doc/htdig-* /mini/usr/share/doc 2>/dev/null
|
307 |
mv -v /usr/share/doc/ImageMagick-* /mini/usr/share/doc 2>/dev/null
|
312 |
mv -v /usr/share/doc/ImageMagick-* /mini/usr/share/doc 2>/dev/null
|
308 |
mv -v /usr/share/doc/isdn4k-utils-* /mini/usr/share/doc 2>/dev/null
|
313 |
mv -v /usr/share/doc/isdn4k-utils-* /mini/usr/share/doc 2>/dev/null
|
309 |
mv -v /usr/share/doc/sane-backends-* /mini/usr/share/doc 2>/dev/null
|
314 |
mv -v /usr/share/doc/sane-backends-* /mini/usr/share/doc 2>/dev/null
|
310 |
mv -v /usr/share/doc/libsigc++20-* /mini/usr/share/doc 2>/dev/null
|
- |
|
311 |
mv -v /usr/share/doc/selinux-policy-* /mini/usr/share/doc 2>/dev/null
|
315 |
mv -v /usr/share/doc/selinux-policy-* /mini/usr/share/doc 2>/dev/null
|
- |
|
316 |
mv -v /usr/share/doc/testdisk-* /mini/usr/share/doc 2>/dev/null
|
312 |
|
317 |
|
313 |
mkdir -p /mini/usr/share/backgrounds/images
|
318 |
mkdir -p /mini/usr/share/backgrounds/images
|
314 |
mv -v /usr/share/backgrounds/images/*.gz /mini/usr/share/backgrounds/images/ 2>/dev/null
|
319 |
mv -v /usr/share/backgrounds/images/*.gz /mini/usr/share/backgrounds/images/ 2>/dev/null
|
315 |
|
320 |
|
- |
|
321 |
mkdir -p /mini/usr/share/anaconda/pixmaps
|
- |
|
322 |
mv -v /usr/share/anaconda/pixmaps/rnotes /mini/usr/share/anaconda/pixmaps/
|
- |
|
323 |
|
316 |
# move zipped java source to /mini, if j2sdk is installed
|
324 |
# move zipped java source, demo, sample to /mini, if j2sdk is installed
|
317 |
java_src=$( rpm -ql j2sdk 2>/dev/null | grep src.zip )
|
325 |
java_src=$( rpm -ql j2sdk 2>/dev/null | grep /src.zip$ )
|
- |
|
326 |
[ -e "$java_src" ] && mv -v "$java_src" /mini/
|
- |
|
327 |
java_demo=$( rpm -ql j2sdk | grep /demo$ | head -n 1 )
|
- |
|
328 |
[ -e "$java_demo" ] && mv -v "$java_demo" /mini/
|
- |
|
329 |
java_sample=$( rpm -ql j2sdk | grep /sample$ | head -n 1 )
|
- |
|
330 |
[ -e "$java_sample" ] && mv -v "$java_sample" /mini/
|
- |
|
331 |
|
- |
|
332 |
# move zipped java source, demo, sample to /mini, if jdk is installed
|
- |
|
333 |
java_src=$( rpm -ql jdk 2>/dev/null | grep /src.zip$ )
|
318 |
[ -e "$java_src" ] && mv -v "$java_src" /mini/
|
334 |
[ -e "$java_src" ] && mv -v "$java_src" /mini/
|
- |
|
335 |
java_demo=$( rpm -ql jdk | grep /demo$ | head -n 1 )
|
- |
|
336 |
[ -e "$java_demo" ] && mv -v "$java_demo" /mini/
|
- |
|
337 |
java_sample=$( rpm -ql jdk | grep /sample$ | head -n 1 )
|
- |
|
338 |
[ -e "$java_sample" ] && mv -v "$java_sample" /mini/
|
319 |
|
339 |
|
320 |
fi
|
340 |
fi
|
321 |
|
341 |
|
322 |
echo "done."
|
342 |
echo "done."
|
323 |
echo "--------------------------------------------"
|
343 |
echo "--------------------------------------------"
|