Line 286... |
Line 286... |
286 |
|
286 |
|
287 |
echo "Move some folders to /mini, to save disk space:"
|
287 |
echo "Move some folders to /mini, to save disk space:"
|
288 |
|
288 |
|
289 |
# move some dirs in /usr/share/doc to /mini
|
289 |
# move some dirs in /usr/share/doc to /mini
|
290 |
mkdir -p /mini/usr/share/doc
|
290 |
mkdir -p /mini/usr/share/doc
|
291 |
mv -v /usr/share/doc/openafs-* /mini/usr/share/doc 2>/dev/null
|
291 |
mv -v /usr/share/doc/openafs-* /mini/usr/share/doc 2>/dev/null
|
292 |
mv -v /usr/share/doc/gcc-* /mini/usr/share/doc 2>/dev/null
|
292 |
mv -v /usr/share/doc/gcc-* /mini/usr/share/doc 2>/dev/null
|
293 |
mv -v /usr/share/doc/pine-* /mini/usr/share/doc 2>/dev/null
|
293 |
mv -v /usr/share/doc/pine-* /mini/usr/share/doc 2>/dev/null
|
294 |
mv -v /usr/share/doc/ntp-* /mini/usr/share/doc 2>/dev/null
|
294 |
mv -v /usr/share/doc/ntp-* /mini/usr/share/doc 2>/dev/null
|
295 |
mv -v /usr/share/doc/cups-* /mini/usr/share/doc 2>/dev/null
|
295 |
mv -v /usr/share/doc/cups-* /mini/usr/share/doc 2>/dev/null
|
296 |
mv -v /usr/share/doc/testdisk-* /mini/usr/share/doc 2>/dev/null
|
296 |
mv -v /usr/share/doc/testdisk-* /mini/usr/share/doc 2>/dev/null
|
297 |
mv -v /usr/share/doc/htdig-* /mini/usr/share/doc 2>/dev/null
|
297 |
mv -v /usr/share/doc/htdig-* /mini/usr/share/doc 2>/dev/null
|
298 |
mv -v /usr/share/doc/gnome-vfs2-* /mini/usr/share/doc 2>/dev/null
|
298 |
mv -v /usr/share/doc/gnome-vfs2-* /mini/usr/share/doc 2>/dev/null
|
299 |
mv -v /usr/share/doc/bash-* /mini/usr/share/doc 2>/dev/null
|
299 |
mv -v /usr/share/doc/bash-* /mini/usr/share/doc 2>/dev/null
|
300 |
mv -v /usr/share/doc/exim-* /mini/usr/share/doc 2>/dev/null
|
300 |
mv -v /usr/share/doc/exim-* /mini/usr/share/doc 2>/dev/null
|
301 |
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/gnuplot-* /mini/usr/share/doc 2>/dev/null
|
302 |
mv -v /usr/share/doc/gnuplot-* /mini/usr/share/doc 2>/dev/null
|
303 |
mv -v /usr/share/doc/ImageMagick-* /mini/usr/share/doc 2>/dev/null
|
303 |
mv -v /usr/share/doc/ImageMagick-* /mini/usr/share/doc 2>/dev/null
|
304 |
mv -v /usr/share/doc/isdn4k-utils-* /mini/usr/share/doc 2>/dev/null
|
304 |
mv -v /usr/share/doc/isdn4k-utils-* /mini/usr/share/doc 2>/dev/null
|
305 |
mv -v /usr/share/doc/sane-backends-* /mini/usr/share/doc 2>/dev/null
|
305 |
mv -v /usr/share/doc/sane-backends-* /mini/usr/share/doc 2>/dev/null
|
Line 519... |
Line 519... |
519 |
[ -e /etc/sysconfig/networking/profiles/default/hosts ] || cp -a customize/hosts /etc/sysconfig/networking/profiles/default/hosts
|
519 |
[ -e /etc/sysconfig/networking/profiles/default/hosts ] || cp -a customize/hosts /etc/sysconfig/networking/profiles/default/hosts
|
520 |
|
520 |
|
521 |
|
521 |
|
522 |
###############################################################
|
522 |
###############################################################
|
523 |
# /etc/shadow
|
523 |
# /etc/shadow
|
524 |
[ -e /etc/shadow ] ||
|
524 |
if [ ! -e /etc/shadow ]; then
|
- |
|
525 |
sed -i "s|\*|x|" /etc/passwd
|
- |
|
526 |
sed -i "s|^root::|root:x:|" /etc/passwd
|
- |
|
527 |
cat /etc/passwd | cut -d":" -f 1 | while read u; do echo "$u:*:12345:0:99999:1:::"; done >> /etc/shadow
|
- |
|
528 |
chmod 600 /etc/shadow
|
- |
|
529 |
fi
|
525 |
|
530 |
|
526 |
# /etc/gshadow
|
531 |
# /etc/gshadow
|
527 |
if [ ! -e /etc/gshadow ]; then
|
532 |
if [ ! -e /etc/gshadow ]; then
|
528 |
cp -a /etc/group /etc/gshadow
|
533 |
cp -a /etc/group /etc/gshadow
|
529 |
sed -i "s|:x:|::|" /etc/gshadow
|
534 |
sed -i "s|:x:|::|" /etc/gshadow
|
530 |
sed -i "s|:[0-9]\+:|::|" /etc/gshadow
|
535 |
sed -i "s|:[0-9]\+:|::|" /etc/gshadow
|
- |
|
536 |
chmod 600 /etc/gshadow
|
531 |
fi
|
537 |
fi
|
532 |
|
538 |
|
533 |
echo "done."
|
539 |
echo "done."
|
534 |
echo "--------------------------------------------"
|
540 |
echo "--------------------------------------------"
|
535 |
|
541 |
|