35 |
/boot/System.map) continue ;; |
/boot/System.map) continue ;; |
36 |
/boot/config) continue ;; |
/boot/config) continue ;; |
37 |
/boot/initrd) continue ;; |
/boot/initrd) continue ;; |
38 |
|
/dev*) continue ;; |
39 |
/etc/conf.d/mkinitrd) continue ;; |
/etc/conf.d/mkinitrd) continue ;; |
40 |
/etc/ld.so.conf) continue ;; |
/etc/ld.so.conf) continue ;; |
41 |
/etc/ld.so.cache) continue ;; |
/etc/ld.so.cache) continue ;; |
62 |
/usr/mage*) continue ;; |
/usr/mage*) continue ;; |
63 |
/root*) continue ;; |
/root*) continue ;; |
64 |
/home*) continue ;; |
/home*) continue ;; |
65 |
|
/proc*) continue ;; |
66 |
/tmp*) continue ;; |
/tmp*) continue ;; |
67 |
|
/sys*) continue ;; |
68 |
/var/db*) continue ;; |
/var/db*) continue ;; |
69 |
/var/cache*) continue ;; |
/var/cache*) continue ;; |
70 |
/var/lib/init.d*) continue ;; |
/var/lib/init.d*) continue ;; |
111 |
do |
do |
112 |
if [[ -e ${i} ]] |
if [[ -e ${i} ]] |
113 |
then |
then |
114 |
|
rm -r ${i} |
115 |
|
echo "==> deleted -> ${i}" >> ${LOG} |
116 |
|
fi |
117 |
|
done |
118 |
|
# check old files in boot |
119 |
|
for i in /boot/grub/grub.conf /boot/grub/grub.conf.example /boot/grub/menu.lst |
120 |
|
do |
121 |
|
if [[ -e ${i} ]] |
122 |
|
then |
123 |
rm -r ${i} |
rm -r ${i} |
124 |
echo "==> deleted -> ${i}" >> ${LOG} |
echo "==> deleted -> ${i}" >> ${LOG} |
125 |
fi |
fi |