Skip to content

Commit

Permalink
Merge pull request #7 from volodymyrsamotiy/master
Browse files Browse the repository at this point in the history
msn2410 and msn2700 init scripts - add support of fault attribute for…
  • Loading branch information
dvirl1 authored Feb 14, 2017
2 parents b5089e9 + 93727e2 commit ff1fbbf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions usr/etc/mlnx/msn2410
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,12 @@ case $ACTION in
ln -s $attr /bsp/fan/psu1_fan1_speed_get
fi
fi
                if [ ! -L /bsp/fan/psu1_fan1_fault ]; then
                    attr=`find $psu1/ -name fan1_fault`
                    if [ -e $attr ]; then
                        ln -s $attr /bsp/fan/psu1_fan1_fault
                    fi
                fi
fi

#Init PSU2 FAN
Expand All @@ -622,6 +628,12 @@ case $ACTION in
ln -s $attr /bsp/fan/psu2_fan1_speed_get
fi
fi
                if [ ! -L /bsp/fan/psu2_fan1_fault ]; then
                    attr=`find $psu1/ -name fan1_fault`
                    if [ -e $attr ]; then
                        ln -s $attr /bsp/fan/psu2_fan1_fault
                    fi
                fi
fi

# LED
Expand Down
12 changes: 12 additions & 0 deletions usr/etc/mlnx/msn2700
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,12 @@ case $ACTION in
ln -s $attr /bsp/fan/psu1_fan1_speed_get
fi
fi
                if [ ! -L /bsp/fan/psu1_fan1_fault ]; then
                    attr=`find $psu1/ -name fan1_fault`
                    if [ -e $attr ]; then
                        ln -s $attr /bsp/fan/psu1_fan1_fault
                    fi
                fi
fi

#Init PSU2 FAN
Expand All @@ -642,6 +648,12 @@ case $ACTION in
ln -s $attr /bsp/fan/psu2_fan1_speed_get
fi
fi
                if [ ! -L /bsp/fan/psu2_fan1_fault ]; then
                    attr=`find $psu1/ -name fan1_fault`
                    if [ -e $attr ]; then
                        ln -s $attr /bsp/fan/psu2_fan1_fault
                    fi
                fi
fi

# LED
Expand Down

0 comments on commit ff1fbbf

Please sign in to comment.