-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15f96d9
commit 9692f9e
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...orm/broadcom/sonic-platform-modules-cel/silverstone-v2/scripts/pddf_pre_driver_install.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
#!/bin/bash | ||
# Has customized those drivers,so rename them to lose effect | ||
psu_driver=pddf_psu_driver_module.ko | ||
fan_driver=pddf_fan_driver_module.ko | ||
ker_name=$(uname -r) | ||
driver_path=/usr/lib/modules/${ker_name}/extra/ | ||
if [ -e ${driver_path}${psu_driver} ]; then | ||
mv ${driver_path}${psu_driver} ${driver_path}${psu_driver}-bk | ||
fi | ||
|
||
if [ -e ${driver_path}${fan_driver} ]; then | ||
mv ${driver_path}${fan_driver} ${driver_path}${fan_driver}-bk | ||
fi | ||
echo 'pddf psu,fan driver module has rename now' |