29 |
do |
do |
30 |
# excludes |
# excludes |
31 |
case ${i} in |
case ${i} in |
32 |
|
/boot/boot*) continue ;; |
33 |
|
/boot/grub*) continue ;; |
34 |
|
/boot/vmlinuz) continue ;; |
35 |
|
/boot/System.map) continue ;; |
36 |
|
/boot/config) continue ;; |
37 |
|
/boot/initrd) continue ;; |
38 |
|
/dev*) continue ;; |
39 |
|
/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 ;; |
42 |
|
/etc/modprobe.d/uvesafb.conf) continue;; |
43 |
/etc/localtime) continue ;; |
/etc/localtime) continue ;; |
44 |
/etc/shadow*) continue ;; |
/etc/shadow*) continue ;; |
45 |
/etc/gshadow*) continue ;; |
/etc/gshadow*) continue ;; |
46 |
/etc/passwd*) continue ;; |
/etc/passwd*) continue ;; |
47 |
|
/etc/fstab) continue ;; |
48 |
/etc/group*) continue ;; |
/etc/group*) continue ;; |
49 |
|
/etc/host*) continue ;; |
50 |
|
/etc/mage*) continue ;; |
51 |
|
/etc/mtab) continue ;; |
52 |
/etc/modprobe.conf) continue ;; |
/etc/modprobe.conf) continue ;; |
53 |
|
/etc/modprobe.d/net.*) continue ;; |
54 |
/etc/resolv.conf) continue ;; |
/etc/resolv.conf) continue ;; |
55 |
/etc/profile.env) continue ;; |
/etc/profile.env) continue ;; |
56 |
/etc/rc.d/rcboot.d*) continue ;; |
/etc/rc.d/rcboot.d*) 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 ;; |
71 |
/var/run*) continue ;; |
/var/run*) continue ;; |
72 |
/var/tmp/magebuild*) continue ;; |
/var/tmp/magebuild*) continue ;; |
73 |
# update specific |
# update specific |
78 |
|
|
79 |
if [[ -z $(magequery -f ${i}) ]] |
if [[ -z $(magequery -f ${i}) ]] |
80 |
then |
then |
81 |
echo -e "${COLRED}NAK${COLDEFAULT} -> ${i}" |
echo -e "${COLRED}NAK${COLDEFAULT} -> ${i}" |
82 |
#echo "not found -> ${i}" >> ${LOG} |
#echo "not found -> ${i}" >> ${LOG} |
83 |
if [[ -L ${i} ]] |
if [[ -L ${i} ]] |
84 |
then |
then |
115 |
echo "==> deleted -> ${i}" >> ${LOG} |
echo "==> deleted -> ${i}" >> ${LOG} |
116 |
fi |
fi |
117 |
done |
done |
118 |
|
# check old files in home |
119 |
|
for i in .fluxbox .alxprogs .xtdesktop .xtdeskrc .ideskrc .idesktop .xinitrc |
120 |
|
do |
121 |
|
if [[ -f /home/station/${i} ]] |
122 |
|
then |
123 |
|
rm /home/station/${i} |
124 |
|
echo "==> deleted -> /home/station/${i}" >> ${LOG} |
125 |
|
fi |
126 |
|
if [[ -d /home/station/${i} ]] |
127 |
|
then |
128 |
|
rm -r /home/station/${i} |
129 |
|
echo "==> deleted -> /home/station/${i}" >> ${LOG} |
130 |
|
fi |
131 |
|
done |
132 |
# recreate fontconfig cache |
# recreate fontconfig cache |
133 |
if [ -x /usr/bin/fc-cache ] |
if [ -x /usr/bin/fc-cache ] |
134 |
then |
then |