Compare commits
3 Commits
d8f8aa9cb0
...
58f45494af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58f45494af | ||
|
|
1eecd40539 | ||
|
|
6fce071426 |
@ -140,7 +140,7 @@ ina3221_ch2_volt="0"
|
||||
ina3221_ch0_current="0"
|
||||
ina3221_ch1_current="0"
|
||||
ina3221_ch2_current="0"
|
||||
SCRIPT_VERSION="1.7.2"
|
||||
SCRIPT_VERSION="1.7.3"
|
||||
|
||||
fru_file_name=$option_data2
|
||||
fru_write_size=0
|
||||
@ -252,10 +252,10 @@ parse_nic_slot(){
|
||||
esac
|
||||
|
||||
if [ $nic_type = "ocp" ];then
|
||||
slot_number=$(echo $nic_slot | cut -c 4)
|
||||
slot_number=$(echo $nic_slot | cut -b 4-)
|
||||
else
|
||||
if [ $fullname -eq 1 ];then
|
||||
slot_number=$(echo $nic_slot | cut -c 5)
|
||||
slot_number=$(echo $nic_slot | cut -b 5-)
|
||||
else
|
||||
slot_number=$nic_slot
|
||||
fi
|
||||
@ -269,7 +269,7 @@ try_get_server_type(){
|
||||
if [ -e "/tmp/ns_servertype" ];then
|
||||
server_type=`cat /tmp/ns_servertype`
|
||||
else
|
||||
boardid=`cat /proc/cmdline | awk -F'=' '/boardid=/{print $8; exit}'`
|
||||
boardid=`cat /proc/cmdline | awk -F 'boardid=' '{split($2, a," "); print a[1]}'`
|
||||
|
||||
if [ $boardid -eq 130 ];then
|
||||
server_type="5280m7"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user