home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / share / YaST2 / clients / inst_save_hardware_status.ycp < prev    next >
Text File  |  2006-11-29  |  817b  |  32 lines

  1. /**
  2.  * File:    installation/general/inst_save_hardware_status.ycp
  3.  * Module:    Installation
  4.  * Summary:    Save status of configured hardware
  5.  * Authors:    Jiri Srain <jsrain@suse.cz>
  6.  *
  7.  * $Id: inst_save_hardware_status.ycp 27936 2006-02-13 20:01:14Z olh $
  8.  */
  9.  
  10. {
  11. textdomain "installation";
  12.  
  13. import "GetInstArgs";
  14.  
  15. if (GetInstArgs::going_back ())    // going backwards?
  16.     return `auto;        // don't execute this once more
  17.  
  18. y2milestone ("Saving configured devices...");
  19.  
  20. map out = (map)SCR::Execute (.target.bash_output, "
  21. hwinfo --pci --block --mouse --keyboard --isdn --save-config=all
  22.  
  23. [ -d /var/lib/hardware/udi/org/freedesktop/Hal/devices ] && \
  24. perl -pi -e \"s/hwinfo.configured = 'new'/hwinfo.configured = 'no'/\" \
  25. /var/lib/hardware/udi/org/freedesktop/Hal/devices/*");
  26.  
  27. y2milestone ("Result: %1", out);
  28.  
  29. return `auto;
  30.  
  31. }
  32.