home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd2.bin / suse / inst-sys / lib / YaST2 / bin / create_update_inf next >
Encoding:
Text File  |  2000-03-30  |  830 b   |  11 lines

  1. #! /bin/sh
  2. echo "# /var/lib/YaST/update.inf -- (c) 1999 Suse GmbH"                         >/mnt/var/lib/YaST/update.inf
  3. echo "#"                                                 >>/mnt/var/lib/YaST/update.inf
  4. echo " "                                                 >>/mnt/var/lib/YaST/update.inf
  5. grep DIST_IDENT /tmp/info |  sed  -e 's/DIST_IDENT.*\(SuSE.*\)/Basesystem:           \1/'         >>/mnt/var/lib/YaST/update.inf
  6. grep DIST_IDENT /tmp/info |  sed  -e 's/DIST_IDENT.*\(SuSE.*\)-\(.*\)\#\(.*\)/Distribution_Name:    \1/' >>/mnt/var/lib/YaST/update.inf
  7. grep DIST_IDENT /tmp/info |  sed  -e 's/DIST_IDENT.*\(SuSE.*\)-\(.*\)\#\(.*\)/Distribution_Version: \2/' >>/mnt/var/lib/YaST/update.inf
  8. grep DIST_IDENT /tmp/info |  sed  -e 's/DIST_IDENT.*\(SuSE.*\)-\(.*\)\#\(.*\)/Distribution_Release: \3/' >>/mnt/var/lib/YaST/update.inf
  9. grep -v ^\# /tmp/update.in_ | grep -v DefaultSrcPatchMedium >>/mnt/var/lib/YaST/update.inf
  10.  
  11.