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 |
{ |
{ |