home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / lib / YaST2 / bin / remove_junk < prev    next >
Text File  |  2006-11-29  |  393b  |  16 lines

  1. #!/bin/bash
  2.  
  3. if test -d $1/var/lib/YaST ; then
  4.     /bin/rm -fr $1/var/lib/YaST
  5. fi
  6.  
  7. if test -d $1/var/lib/YaST2 ; then
  8.     /usr/bin/find $1/var/lib/YaST2 -name "*" -a -type f -a \( -name "users.ycp" -prune -o -exec rm -f -- {} \; \)
  9. fi
  10.  
  11. if test -d $1/var/lib/YaST2/you ; then
  12.     /bin/rm -f $1/var/lib/YaST2/you/quickcheck
  13.     /bin/rm -fr $1/var/lib/YaST2/you/{files,installed,mnt,scripts}
  14. fi
  15.  
  16.