Magellan Linux

Diff of /mage/branches/alx-0_6_0/profiles/alx-060/prune-orphaned-files

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2717 by niro, Mon Aug 8 08:24:35 2011 UTC revision 2729 by niro, Thu Aug 11 14:26:49 2011 UTC
# Line 35  do Line 35  do
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 ;;
# Line 61  do Line 62  do
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 ;;
# Line 108  for i in /var/run/dhcpcd-*.pid Line 111  for i in /var/run/dhcpcd-*.pid
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

Legend:
Removed from v.2717  
changed lines
  Added in v.2729