Magellan Linux

Diff of /trunk/installer/hwdetection.sh

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

revision 595 by niro, Wed Sep 12 19:02:39 2007 UTC revision 596 by niro, Mon Oct 15 20:49:40 2007 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    # $Header: /home/cvsd/magellan-cvs/magellan-src/installer/hwdetection.sh,v 1.7 2007-10-15 20:49:40 niro Exp $
3    
4  ## hwdetection, needs >= sys-apps/hwinfo  ## hwdetection, needs >= sys-apps/hwinfo
5    
6    # hwinfo wrapper to use hwinfo with sudo if requested
7    hwinfo()
8    {
9     local use_sudo=""
10     case ${SUDO} in
11     yes|y|true|1) use_sudo=sudo ;;
12     esac
13    
14     ${use_sudo} /usr/sbin/hwinfo $@
15    }
16    
17  # get_hwinfo $hw_item  # get_hwinfo $hw_item
18  get_hwinfo()  get_hwinfo()
19  {  {

Legend:
Removed from v.595  
changed lines
  Added in v.596